Use an enum rather than an integer #define to store analog / digital state.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/*---------------------------------------------------------------------*/
-#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;