summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tuner-core.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-10-29 11:33:18 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-29 11:33:18 -0300
commit20340f725c5078f9bdc715efb2e926d6ce408816 (patch)
tree4750e092406eb65a8ebaf07e70a3028d43b6189f /linux/drivers/media/video/tuner-core.c
parentee8841ac8cd3158d3cc78ed87925dbf4768dd2f8 (diff)
downloadmediapointer-dvb-s2-20340f725c5078f9bdc715efb2e926d6ce408816.tar.gz
mediapointer-dvb-s2-20340f725c5078f9bdc715efb2e926d6ce408816.tar.bz2
Re-inserts xc2028 attach code, fixing its parameters
From: Mauro Carvalho Chehab <mchehab@infradead.org> I2C bus redesign changed i2c parameters. This patch re-adds tuner xc2028 attach function, replacing the parameters to the newer syntax. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/drivers/media/video/tuner-core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
Diffstat (limited to 'linux/drivers/media/video/tuner-core.c')
-rw-r--r--linux/drivers/media/video/tuner-core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c
index ba05f9630..71ef32124 100644
--- a/linux/drivers/media/video/tuner-core.c
+++ b/linux/drivers/media/video/tuner-core.c
@@ -362,10 +362,9 @@ static void set_type(struct i2c_client *c, unsigned int type,
i2c_master_send(c,buffer,4);
attach_simple_tuner(t);
break;
-#if 0
case TUNER_XC2028:
{
- int rc=xc2028_attach(&t->fe, t->i2c.adapter, t->i2c.addr,
+ int rc=xc2028_attach(&t->fe, t->i2c->adapter, t->i2c->addr,
&c->dev, c->adapter->algo_data,
t->tuner_callback);
if (rc<0) {
@@ -375,7 +374,6 @@ static void set_type(struct i2c_client *c, unsigned int type,
}
break;
}
-#endif
case TUNER_TDA9887:
tda9887_attach(t);
break;