summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Krufky2009-08-30 07:32:23 +0200
committerMauro Carvalho Chehab2009-09-19 05:13:45 +0200
commit1216531a1f416df24f67ca8e626df9b3c91e5c75 (patch)
treeb6ffabc116d85e2f0b6f3e92aa1323448edcee13
parentV4L/DVB (12865): tda18271: move tda18271_sleep directly below tda18271_init (diff)
downloadkernel-qcow2-linux-1216531a1f416df24f67ca8e626df9b3c91e5c75.tar.gz
kernel-qcow2-linux-1216531a1f416df24f67ca8e626df9b3c91e5c75.tar.xz
kernel-qcow2-linux-1216531a1f416df24f67ca8e626df9b3c91e5c75.zip
V4L/DVB (12866): tda18271: move small_i2c assignment to the state config block
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>
-rw-r--r--drivers/media/common/tuners/tda18271-fe.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/common/tuners/tda18271-fe.c b/drivers/media/common/tuners/tda18271-fe.c
index e86d16979e75..063c7987d310 100644
--- a/drivers/media/common/tuners/tda18271-fe.c
+++ b/drivers/media/common/tuners/tda18271-fe.c
@@ -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;