Skip to content

Commit

Permalink
V4L/DVB (6800): tda18271: use an enum rather than an integer to store…
Browse files Browse the repository at this point in the history
… analog / digital state

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>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent f6e90a6 commit 7206abb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/media/dvb/frontends/tda18271-fe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7206abb

Please sign in to comment.