Skip to content

Commit

Permalink
V4L/DVB (6472): Re-inserts xc2028 attach code, fixing its parameters
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 1cba97d commit 690c544
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions drivers/media/video/tuner-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,18 @@ static void set_type(struct i2c_client *c, unsigned int type,
i2c_master_send(c,buffer,4);
attach_simple_tuner(t);
break;
case TUNER_XC2028:
{
int rc=xc2028_attach(&t->fe, t->i2c->adapter, t->i2c->addr,
&c->dev, c->adapter->algo_data,
t->tuner_callback);
if (rc<0) {
t->type = TUNER_ABSENT;
t->mode_mask = T_UNINITIALIZED;
return;
}
break;
}
case TUNER_TDA9887:
tda9887_attach(t);
break;
Expand Down

0 comments on commit 690c544

Please sign in to comment.