diff options
author | Michel Ludwig <michel.ludwig@gmail.com> | 2007-11-16 05:46:14 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:02:14 -0500 |
commit | a37b4c9bc87a74ed5003c385eae264fc0acf6b35 (patch) | |
tree | 50ac0d83aebd44f94b357592a22242f11716f7b9 /drivers/media/video/tuner-xc2028.h | |
parent | 2fc580ffeb551066f769934e3a4717d721d0a559 (diff) |
V4L/DVB (6611): Change xc2028_attach method to make easier for DVB
Removes uneeded parameters and adds an structure for passing the parameters
This patch is co-authored by Mauro Carvalho Chehab.
Signed-off-by: Michel Ludwig <michel.ludwig@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
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__); |