V4L/DVB (6800): tda18271: use an enum rather than an integer to store analog / digita...
authorMichael Krufky <mkrufky@linuxtv.org>
Mon, 10 Dec 2007 01:13:01 +0000 (22:13 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:03:31 +0000 (19:03 -0200)
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>
drivers/media/dvb/frontends/tda18271-fe.c

index aecc0a5ac7b38e4ac292a3095a97f8afa12d57db..dbf0f619a90a8acbf0efb1f2c403557164601302 100644 (file)
@@ -31,14 +31,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;