linux/drivers/media/dvb-frontends/cxd2820r_core.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Sony CXD2820R demodulator driver
 *
 * Copyright (C) 2010 Antti Palosaari <[email protected]>
 */


#include "cxd2820r_priv.h"

/* Write register table */
int cxd2820r_wr_reg_val_mask_tab(struct cxd2820r_priv *priv,
				 const struct reg_val_mask *tab, int tab_len)
{}

int cxd2820r_gpio(struct dvb_frontend *fe, u8 *gpio)
{}

static int cxd2820r_set_frontend(struct dvb_frontend *fe)
{}

static int cxd2820r_read_status(struct dvb_frontend *fe, enum fe_status *status)
{}

static int cxd2820r_get_frontend(struct dvb_frontend *fe,
				 struct dtv_frontend_properties *p)
{}

static int cxd2820r_read_ber(struct dvb_frontend *fe, u32 *ber)
{}

static int cxd2820r_read_signal_strength(struct dvb_frontend *fe, u16 *strength)
{}

static int cxd2820r_read_snr(struct dvb_frontend *fe, u16 *snr)
{}

static int cxd2820r_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks)
{}

static int cxd2820r_init(struct dvb_frontend *fe)
{}

static int cxd2820r_sleep(struct dvb_frontend *fe)
{}

static int cxd2820r_get_tune_settings(struct dvb_frontend *fe,
				      struct dvb_frontend_tune_settings *s)
{}

static enum dvbfe_search cxd2820r_search(struct dvb_frontend *fe)
{}

static enum dvbfe_algo cxd2820r_get_frontend_algo(struct dvb_frontend *fe)
{}

static void cxd2820r_release(struct dvb_frontend *fe)
{}

static int cxd2820r_i2c_gate_ctrl(struct dvb_frontend *fe, int enable)
{}

#ifdef CONFIG_GPIOLIB
static int cxd2820r_gpio_direction_output(struct gpio_chip *chip, unsigned nr,
		int val)
{}

static void cxd2820r_gpio_set(struct gpio_chip *chip, unsigned nr, int val)
{}

static int cxd2820r_gpio_get(struct gpio_chip *chip, unsigned nr)
{}
#endif

static const struct dvb_frontend_ops cxd2820r_ops =;

/*
 * XXX: That is wrapper to cxd2820r_probe() via driver core in order to provide
 * proper I2C client for legacy media attach binding.
 * New users must use I2C client binding directly!
 */
struct dvb_frontend *cxd2820r_attach(const struct cxd2820r_config *config,
				     struct i2c_adapter *adapter,
				     int *gpio_chip_base)
{}
EXPORT_SYMBOL_GPL();

static struct dvb_frontend *cxd2820r_get_dvb_frontend(struct i2c_client *client)
{}

static int cxd2820r_probe(struct i2c_client *client)
{}

static void cxd2820r_remove(struct i2c_client *client)
{}

static const struct i2c_device_id cxd2820r_id_table[] =;
MODULE_DEVICE_TABLE(i2c, cxd2820r_id_table);

static struct i2c_driver cxd2820r_driver =;

module_i2c_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();