summaryrefslogtreecommitdiff
path: root/drivers/media/tuners/tda8290.c
diff options
context:
space:
mode:
authorOndrej Zary <linux@rainbow-software.org>2013-04-06 21:29:29 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-04-08 14:05:15 +0400
commit1bacb2df3bc999dcad21e9aab6bdb60d6dc7bc02 (patch)
treefcbd760fce71aac385869988b446553b55a1dd9a /drivers/media/tuners/tda8290.c
parent34fe2784b4aabeec6d2afbd132d070b20abea132 (diff)
downloadlinux-1bacb2df3bc999dcad21e9aab6bdb60d6dc7bc02.tar.xz
[media] tda8290: change magic LNA config values to enum
Use enum instead of magic values for LNA config in tda8290. Update tda827x, tda18271 and saa7134 to use the enum too. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/tuners/tda8290.c')
-rw-r--r--drivers/media/tuners/tda8290.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/tuners/tda8290.c b/drivers/media/tuners/tda8290.c
index c1ade88d1fa8..20cc7dad6b4e 100644
--- a/drivers/media/tuners/tda8290.c
+++ b/drivers/media/tuners/tda8290.c
@@ -496,7 +496,8 @@ static void tda8290_init_if(struct dvb_frontend *fe)
unsigned char set_GP00_CF[] = { 0x20, 0x01 };
unsigned char set_GP01_CF[] = { 0x20, 0x0B };
- if ((priv->cfg.config == 1) || (priv->cfg.config == 2))
+ if ((priv->cfg.config == TDA8290_LNA_GP0_HIGH_ON) ||
+ (priv->cfg.config == TDA8290_LNA_GP0_HIGH_OFF))
tuner_i2c_xfer_send(&priv->i2c_props, set_GP00_CF, 2);
else
tuner_i2c_xfer_send(&priv->i2c_props, set_GP01_CF, 2);