summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tuner-xc2028.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-11-22 13:19:37 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-11-22 13:19:37 -0200
commit114731f1a4315c31fafed37b934e51725dac29d6 (patch)
tree71a427614a6daa0587a79c681866bcde7f21e20e /linux/drivers/media/video/tuner-xc2028.h
parentc90ce9754c3f2052b5f05586074c6bbf10fafde5 (diff)
downloadmediapointer-dvb-s2-114731f1a4315c31fafed37b934e51725dac29d6.tar.gz
mediapointer-dvb-s2-114731f1a4315c31fafed37b934e51725dac29d6.tar.bz2
Allow fully configuring xc3028 during xc2028_attach
From: Mauro Carvalho Chehab <mchehab@infradead.org> xc3028 can be used on some DTV only designs (for example, DVB-S boards). Before this patch, a DTV only board would need to call set_tuner_config callback. This patch allows to optionally pass a xc3028_ctrl parameter, via xc3028_config struct, fully initializing the driver for DTV. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/drivers/media/video/tuner-xc2028.c | 5 ++++- linux/drivers/media/video/tuner-xc2028.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-)
Diffstat (limited to 'linux/drivers/media/video/tuner-xc2028.h')
-rw-r--r--linux/drivers/media/video/tuner-xc2028.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/video/tuner-xc2028.h b/linux/drivers/media/video/tuner-xc2028.h
index f24fb2a00..a59d00fb2 100644
--- a/linux/drivers/media/video/tuner-xc2028.h
+++ b/linux/drivers/media/video/tuner-xc2028.h
@@ -23,6 +23,7 @@ struct xc2028_config {
struct i2c_adapter *i2c_adap;
u8 i2c_addr;
void *video_dev;
+ struct xc2028_ctrl *ctrl;
int (*callback) (void *dev, int command, int arg);
};