V4L/DVB (12866): tda18271: move small_i2c assignment to the state config block
authorMichael Krufky <mkrufky@kernellabs.com>
Sun, 30 Aug 2009 05:32:23 +0000 (02:32 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 19 Sep 2009 03:13:45 +0000 (00:13 -0300)
minor cleanup: move small_i2c assignment to the state config block

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tda18271-fe.c

index e86d16979e75b6bb08f64baf439e8909b88ff99a..063c7987d310b59001b0d00b2f6cfe08b72991fd 100644 (file)
@@ -1219,6 +1219,7 @@ struct dvb_frontend *tda18271_attach(struct dvb_frontend *fe, u8 addr,
                priv->gate = (cfg) ? cfg->gate : TDA18271_GATE_AUTO;
                priv->role = (cfg) ? cfg->role : TDA18271_MASTER;
                priv->config = (cfg) ? cfg->config : 0;
+               priv->small_i2c = (cfg) ? cfg->small_i2c : 0;
                priv->output_opt = (cfg) ?
                        cfg->output_opt : TDA18271_OUTPUT_LT_XT_ON;
 
@@ -1238,9 +1239,6 @@ struct dvb_frontend *tda18271_attach(struct dvb_frontend *fe, u8 addr,
 
                fe->tuner_priv = priv;
 
-               if (cfg)
-                       priv->small_i2c = cfg->small_i2c;
-
                if (tda_fail(tda18271_get_id(fe)))
                        goto fail;