summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@kernellabs.com>2009-08-30 01:32:23 -0400
committerMichael Krufky <mkrufky@kernellabs.com>2009-08-30 01:32:23 -0400
commita742aa93fac3bc19f1f9fa7d2e602d31143d0195 (patch)
tree6f67cf4ee8ce0d0bb326588ddc18330753961f99 /linux/drivers
parent0f8ff0b9984631b19106530b496b1c25651c6ef7 (diff)
downloadmediapointer-dvb-s2-a742aa93fac3bc19f1f9fa7d2e602d31143d0195.tar.gz
mediapointer-dvb-s2-a742aa93fac3bc19f1f9fa7d2e602d31143d0195.tar.bz2
tda18271: move small_i2c assignment to the state config block
From: Michael Krufky <mkrufky@kernellabs.com> minor cleanup: move small_i2c assignment to the state config block Priority: normal Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/common/tuners/tda18271-fe.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/linux/drivers/media/common/tuners/tda18271-fe.c b/linux/drivers/media/common/tuners/tda18271-fe.c
index 0e1eea9f3..3ad9f3435 100644
--- a/linux/drivers/media/common/tuners/tda18271-fe.c
+++ b/linux/drivers/media/common/tuners/tda18271-fe.c
@@ -1220,6 +1220,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;
@@ -1239,9 +1240,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;