diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-12-09 20:13:01 -0500 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2007-12-09 20:13:01 -0500 |
commit | 1b262d59b2af4aae1a98c6d681906c3208727ae9 (patch) | |
tree | 280db27e249acebf0983347fd611ea71c9773b6e /linux | |
parent | 84cad69d9ea1d0b5f0ea9d3983f8b7d0f068a0f0 (diff) | |
download | mediapointer-dvb-s2-1b262d59b2af4aae1a98c6d681906c3208727ae9.tar.gz mediapointer-dvb-s2-1b262d59b2af4aae1a98c6d681906c3208727ae9.tar.bz2 |
tda18271: use an enum rather than an integer to store analog / digital state
From: Michael Krufky <mkrufky@linuxtv.org>
Use an enum rather than an integer #define to store analog / digital state.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/dvb/frontends/tda18271-fe.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda18271-fe.c b/linux/drivers/media/dvb/frontends/tda18271-fe.c index d90fc2ebc..0cf6834a8 100644 --- a/linux/drivers/media/dvb/frontends/tda18271-fe.c +++ b/linux/drivers/media/dvb/frontends/tda18271-fe.c @@ -32,14 +32,16 @@ MODULE_PARM_DESC(debug, "set debug level (info=1, map=2, reg=4 (or-able))"); /*---------------------------------------------------------------------*/ -#define TDA18271_ANALOG 0 -#define TDA18271_DIGITAL 1 +enum tda18271_mode { + TDA18271_ANALOG, + TDA18271_DIGITAL, +}; struct tda18271_priv { u8 i2c_addr; struct i2c_adapter *i2c_adap; unsigned char tda18271_regs[TDA18271_NUM_REGS]; - int mode; + enum tda18271_mode mode; u32 frequency; u32 bandwidth; |