From 20340f725c5078f9bdc715efb2e926d6ce408816 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Mon, 29 Oct 2007 11:33:18 -0300 Subject: Re-inserts xc2028 attach code, fixing its parameters From: Mauro Carvalho Chehab 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 --- linux/drivers/media/video/tuner-core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- linux/drivers/media/video/tuner-core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'linux') 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; -- cgit v1.2.3