]> git.karo-electronics.de Git - linux-beck.git/commitdiff
V4L/DVB (6782): tda8290: access frontend structure directly, where possible
authorMichael Krufky <mkrufky@linuxtv.org>
Sat, 8 Dec 2007 19:25:41 +0000 (16:25 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:03:27 +0000 (19:03 -0200)
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/tda8290.c

index 09efb6a60dbc21a75048e4faaba7c59f56dfe152..d5517bcf6ffe631927ec725963d0b1374085aaad 100644 (file)
@@ -587,7 +587,7 @@ 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)
@@ -595,14 +595,14 @@ static int tda829x_find_tuner(struct dvb_frontend *fe)
                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);