aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-xc2028.h
diff options
context:
space:
mode:
authorMichel Ludwig <michel.ludwig@gmail.com>2007-11-16 07:46:14 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 19:02:14 -0200
commita37b4c9bc87a74ed5003c385eae264fc0acf6b35 (patch)
tree50ac0d83aebd44f94b357592a22242f11716f7b9 /drivers/media/video/tuner-xc2028.h
parentV4L/DVB (6610): Fix a wrong typecast (diff)
downloadlinux-dev-a37b4c9bc87a74ed5003c385eae264fc0acf6b35.tar.xz
linux-dev-a37b4c9bc87a74ed5003c385eae264fc0acf6b35.zip
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 '')
-rw-r--r--drivers/media/video/tuner-xc2028.h20
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 {
int max_len;
};
+struct xc2028_config {
+ struct i2c_adapter *i2c_adap;
+ u8 i2c_addr;
+ void *video_dev;
+ int (*callback) (void *dev, int command, int arg);
+};
+
/* xc2028 commands for callback */
#define XC2028_TUNER_RESET 0
#define XC2028_RESET_CLK 1
#if defined(CONFIG_TUNER_XC2028) || (defined(CONFIG_TUNER_XC2028_MODULE) && defined(MODULE))
-int xc2028_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c_adap,
- u8 i2c_addr, struct device *dev, void *video_dev,
- int (*tuner_callback) (void *dev, int command, int arg));
-
+void *xc2028_attach(struct dvb_frontend *fe, struct xc2028_config *cfg);
#else
-static inline int xc2028_attach(struct dvb_frontend *fe,
- struct i2c_adapter *i2c_adap,
- u8 i2c_addr, struct device *dev,
- void *video_dev,
- int (*tuner_callback) (void *dev, int command,
- int arg))
+void *xc2028_attach(struct dvb_frontend *fe,
+ struct xc2028_config *cfg)
{
printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n",
__FUNCTION__);