diff options
Diffstat (limited to 'drivers/media/video/tda8290.h')
-rw-r--r-- | drivers/media/video/tda8290.h | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/drivers/media/video/tda8290.h b/drivers/media/video/tda8290.h index 107b24b05aa1..9b63e62b3a0f 100644 --- a/drivers/media/video/tda8290.h +++ b/drivers/media/video/tda8290.h | |||
@@ -18,36 +18,24 @@ | |||
18 | #define __TDA8290_H__ | 18 | #define __TDA8290_H__ |
19 | 19 | ||
20 | #include <linux/i2c.h> | 20 | #include <linux/i2c.h> |
21 | #include "dvb_frontend.h" | 21 | #include "tuner-driver.h" |
22 | |||
23 | struct tda8290_config | ||
24 | { | ||
25 | unsigned int *lna_cfg; | ||
26 | int (*tuner_callback) (void *dev, int command,int arg); | ||
27 | }; | ||
28 | 22 | ||
29 | #if defined(CONFIG_TUNER_TDA8290) || (defined(CONFIG_TUNER_TDA8290_MODULE) && defined(MODULE)) | 23 | #if defined(CONFIG_TUNER_TDA8290) || (defined(CONFIG_TUNER_TDA8290_MODULE) && defined(MODULE)) |
30 | extern int tda8290_probe(struct i2c_adapter* i2c_adap, u8 i2c_addr); | 24 | extern int tda8290_probe(struct tuner *t); |
31 | 25 | ||
32 | extern struct dvb_frontend *tda8290_attach(struct dvb_frontend *fe, | 26 | extern int tda8290_attach(struct tuner *t); |
33 | struct i2c_adapter* i2c_adap, | ||
34 | u8 i2c_addr, | ||
35 | struct tda8290_config *cfg); | ||
36 | #else | 27 | #else |
37 | static inline int tda8290_probe(struct i2c_adapter* i2c_adap, u8 i2c_addr) | 28 | static inline int tda8290_probe(struct tuner *t) |
38 | { | 29 | { |
39 | printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n", | 30 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); |
40 | __FUNCTION__); | ||
41 | return -EINVAL; | 31 | return -EINVAL; |
42 | } | 32 | } |
43 | 33 | ||
44 | static inline struct dvb_frontend *tda8290_attach(struct dvb_frontend *fe, | 34 | static inline int tda8290_attach(struct tuner *t) |
45 | struct i2c_adapter* i2c_adap, | ||
46 | u8 i2c_addr, | ||
47 | struct tda8290_config *cfg) | ||
48 | { | 35 | { |
49 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); | 36 | printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n", |
50 | return NULL; | 37 | __FUNCTION__); |
38 | return -EINVAL; | ||
51 | } | 39 | } |
52 | #endif | 40 | #endif |
53 | 41 | ||