summaryrefslogtreecommitdiff
path: root/drivers/media/tuners/tda8290.h
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.h
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.h')
-rw-r--r--drivers/media/tuners/tda8290.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/media/tuners/tda8290.h b/drivers/media/tuners/tda8290.h
index 97f1d0f848ef..cf96e585785e 100644
--- a/drivers/media/tuners/tda8290.h
+++ b/drivers/media/tuners/tda8290.h
@@ -21,8 +21,15 @@
#include "dvb_frontend.h"
#include "tda18271.h"
+enum tda8290_lna {
+ TDA8290_LNA_OFF = 0,
+ TDA8290_LNA_GP0_HIGH_ON = 1,
+ TDA8290_LNA_GP0_HIGH_OFF = 2,
+ TDA8290_LNA_ON_BRIDGE = 3,
+};
+
struct tda829x_config {
- unsigned int lna_cfg;
+ enum tda8290_lna lna_cfg;
unsigned int probe_tuner:1;
#define TDA829X_PROBE_TUNER 0