diff options
Diffstat (limited to 'drivers/media/video/tuner-xc2028.h')
-rw-r--r-- | drivers/media/video/tuner-xc2028.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/media/video/tuner-xc2028.h b/drivers/media/video/tuner-xc2028.h index e04611e653e4..a20eeb4935d0 100644 --- a/drivers/media/video/tuner-xc2028.h +++ b/drivers/media/video/tuner-xc2028.h | |||
@@ -22,22 +22,22 @@ struct xc2028_ctrl { | |||
22 | int max_len; | 22 | int max_len; |
23 | }; | 23 | }; |
24 | 24 | ||
25 | struct xc2028_config { | ||
26 | struct i2c_adapter *i2c_adap; | ||
27 | u8 i2c_addr; | ||
28 | void *video_dev; | ||
29 | int (*callback) (void *dev, int command, int arg); | ||
30 | }; | ||
31 | |||
25 | /* xc2028 commands for callback */ | 32 | /* xc2028 commands for callback */ |
26 | #define XC2028_TUNER_RESET 0 | 33 | #define XC2028_TUNER_RESET 0 |
27 | #define XC2028_RESET_CLK 1 | 34 | #define XC2028_RESET_CLK 1 |
28 | 35 | ||
29 | #if defined(CONFIG_TUNER_XC2028) || (defined(CONFIG_TUNER_XC2028_MODULE) && defined(MODULE)) | 36 | #if defined(CONFIG_TUNER_XC2028) || (defined(CONFIG_TUNER_XC2028_MODULE) && defined(MODULE)) |
30 | int xc2028_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c_adap, | 37 | void *xc2028_attach(struct dvb_frontend *fe, struct xc2028_config *cfg); |
31 | u8 i2c_addr, struct device *dev, void *video_dev, | ||
32 | int (*tuner_callback) (void *dev, int command, int arg)); | ||
33 | |||
34 | #else | 38 | #else |
35 | static inline int xc2028_attach(struct dvb_frontend *fe, | 39 | void *xc2028_attach(struct dvb_frontend *fe, |
36 | struct i2c_adapter *i2c_adap, | 40 | struct xc2028_config *cfg) |
37 | u8 i2c_addr, struct device *dev, | ||
38 | void *video_dev, | ||
39 | int (*tuner_callback) (void *dev, int command, | ||
40 | int arg)) | ||
41 | { | 41 | { |
42 | printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n", | 42 | printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n", |
43 | __FUNCTION__); | 43 | __FUNCTION__); |