Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7206abbc2d19b6846b879fb266672b40da9961cb
Commit:     7206abbc2d19b6846b879fb266672b40da9961cb
Parent:     f6e90a66cde270cd6cc7aa1f4f0650930aa7f6bc
Author:     Michael Krufky <[EMAIL PROTECTED]>
AuthorDate: Sun Dec 9 22:13:01 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Jan 25 19:03:31 2008 -0200

    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: Michael Krufky <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/dvb/frontends/tda18271-fe.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/media/dvb/frontends/tda18271-fe.c 
b/drivers/media/dvb/frontends/tda18271-fe.c
index aecc0a5..dbf0f61 100644
--- a/drivers/media/dvb/frontends/tda18271-fe.c
+++ b/drivers/media/dvb/frontends/tda18271-fe.c
@@ -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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to