diff options
author | Antti Palosaari <crope@iki.fi> | 2013-12-02 22:38:41 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-12-19 12:24:05 +0100 |
commit | eafa2ad6e46c523da7d6970306167b24c861504f (patch) | |
tree | 6b96fa6cb17c189ccc67cdc9480755e74665e1ed /drivers/media/tuners/m88ts2022.h | |
parent | [media] m88ds3103: I/O optimize inittab write (diff) | |
download | linux-eafa2ad6e46c523da7d6970306167b24c861504f.tar.xz linux-eafa2ad6e46c523da7d6970306167b24c861504f.zip |
[media] m88ts2022: convert to Kernel I2C driver model
Convert driver from proprietary DVB driver model to standard I2C
driver model.
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/tuners/m88ts2022.h')
-rw-r--r-- | drivers/media/tuners/m88ts2022.h | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/drivers/media/tuners/m88ts2022.h b/drivers/media/tuners/m88ts2022.h index fa1112cad656..1943b83f41d7 100644 --- a/drivers/media/tuners/m88ts2022.h +++ b/drivers/media/tuners/m88ts2022.h @@ -25,12 +25,6 @@ struct m88ts2022_config { /* - * I2C address - * 0x60, ... - */ - u8 i2c_addr; - - /* * clock * 16000000 - 32000000 */ @@ -54,19 +48,11 @@ struct m88ts2022_config { * 1 - 31 */ u8 clock_out_div:5; -}; -#if defined(CONFIG_MEDIA_TUNER_M88TS2022) || \ - (defined(CONFIG_MEDIA_TUNER_M88TS2022_MODULE) && defined(MODULE)) -extern struct dvb_frontend *m88ts2022_attach(struct dvb_frontend *fe, - struct i2c_adapter *i2c, const struct m88ts2022_config *cfg); -#else -static inline struct dvb_frontend *m88ts2022_attach(struct dvb_frontend *fe, - struct i2c_adapter *i2c, const struct m88ts2022_config *cfg) -{ - pr_warn("%s: driver disabled by Kconfig\n", __func__); - return NULL; -} -#endif + /* + * pointer to DVB frontend + */ + struct dvb_frontend *fe; +}; #endif |