Commit 7206abbc authored by Michael Krufky's avatar Michael Krufky Committed by Mauro Carvalho Chehab

V4L/DVB (6800): tda18271: use an enum rather than an integer to store analog / digital state

Use an enum rather than an integer #define to store analog / digital state.
Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent f6e90a66
...@@ -31,14 +31,16 @@ MODULE_PARM_DESC(debug, "set debug level (info=1, map=2, reg=4 (or-able))"); ...@@ -31,14 +31,16 @@ MODULE_PARM_DESC(debug, "set debug level (info=1, map=2, reg=4 (or-able))");
/*---------------------------------------------------------------------*/ /*---------------------------------------------------------------------*/
#define TDA18271_ANALOG 0 enum tda18271_mode {
#define TDA18271_DIGITAL 1 TDA18271_ANALOG,
TDA18271_DIGITAL,
};
struct tda18271_priv { struct tda18271_priv {
u8 i2c_addr; u8 i2c_addr;
struct i2c_adapter *i2c_adap; struct i2c_adapter *i2c_adap;
unsigned char tda18271_regs[TDA18271_NUM_REGS]; unsigned char tda18271_regs[TDA18271_NUM_REGS];
int mode; enum tda18271_mode mode;
u32 frequency; u32 frequency;
u32 bandwidth; u32 bandwidth;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment