Skip to content

Commit

Permalink
V4L/DVB (6782): tda8290: access frontend structure directly, where po…
Browse files Browse the repository at this point in the history
…ssible

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 14d5deb commit 6881647
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/media/video/tda8290.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,22 +587,22 @@ static int tda829x_find_tuner(struct dvb_frontend *fe)

if (data == 0x83) {
priv->ver |= TDA18271;
tda18271_attach(&t->fe, priv->tda827x_addr,
tda18271_attach(fe, priv->tda827x_addr,
priv->i2c_props.adap);
} else {
if ((data & 0x3c) == 0)
priv->ver |= TDA8275;
else
priv->ver |= TDA8275A;

tda827x_attach(&t->fe, priv->tda827x_addr,
tda827x_attach(fe, priv->tda827x_addr,
priv->i2c_props.adap, &priv->cfg);
}
if (t->fe.ops.tuner_ops.init)
t->fe.ops.tuner_ops.init(&t->fe);
if (fe->ops.tuner_ops.init)
fe->ops.tuner_ops.init(fe);

if (t->fe.ops.tuner_ops.sleep)
t->fe.ops.tuner_ops.sleep(&t->fe);
if (fe->ops.tuner_ops.sleep)
fe->ops.tuner_ops.sleep(fe);

ops->i2c_gate_ctrl(fe, 0);

Expand Down

0 comments on commit 6881647

Please sign in to comment.