Commit 690c544c authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

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: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 1cba97d7
...@@ -335,6 +335,18 @@ static void set_type(struct i2c_client *c, unsigned int type, ...@@ -335,6 +335,18 @@ static void set_type(struct i2c_client *c, unsigned int type,
i2c_master_send(c,buffer,4); i2c_master_send(c,buffer,4);
attach_simple_tuner(t); attach_simple_tuner(t);
break; 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: case TUNER_TDA9887:
tda9887_attach(t); tda9887_attach(t);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment