aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-core.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-10-29 10:33:18 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:01:32 -0500
commit690c544cf849e627d3f40a71633d0caf5c33eafe (patch)
tree7243a1c1d0faf10d4e1eb4596092b53a2a3a555c /drivers/media/video/tuner-core.c
parent1cba97d71dca1a3c22b4d7f97893249817036215 (diff)
V4L/DVB (6472): Re-inserts xc2028 attach code, fixing its parameters
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>
Diffstat (limited to 'drivers/media/video/tuner-core.c')
-rw-r--r--drivers/media/video/tuner-core.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
index 41ff4d2604af..11abd188b17d 100644
--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -335,6 +335,18 @@ static void set_type(struct i2c_client *c, unsigned int type,
335 i2c_master_send(c,buffer,4); 335 i2c_master_send(c,buffer,4);
336 attach_simple_tuner(t); 336 attach_simple_tuner(t);
337 break; 337 break;
338 case TUNER_XC2028:
339 {
340 int rc=xc2028_attach(&t->fe, t->i2c->adapter, t->i2c->addr,
341 &c->dev, c->adapter->algo_data,
342 t->tuner_callback);
343 if (rc<0) {
344 t->type = TUNER_ABSENT;
345 t->mode_mask = T_UNINITIALIZED;
346 return;
347 }
348 break;
349 }
338 case TUNER_TDA9887: 350 case TUNER_TDA9887:
339 tda9887_attach(t); 351 tda9887_attach(t);
340 break; 352 break;