V4L/DVB (6681): tda18271: rename 'debug' to 'tda18271_debug'
authorMichael Krufky <mkrufky@linuxtv.org>
Fri, 23 Nov 2007 21:14:53 +0000 (18:14 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:03:00 +0000 (19:03 -0200)
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 ba980cf5811b7e45e8faf30b8363cde3653eabb4..726e102cbc5d121549fcfd48cc7a65904e48d717 100644 (file)
 #include "tda18271.h"
 #include "tda18271-priv.h"
 
-static int debug;
-module_param(debug, int, 0644);
+static int tda18271_debug;
+module_param_named(debug, tda18271_debug, int, 0644);
 MODULE_PARM_DESC(debug, "Turn on/off frontend debugging (default:off).");
 
 #define dprintk(level, fmt, arg...) do {\
-       if (debug >= level) \
+       if (tda18271_debug >= level) \
                printk(KERN_DEBUG "%s: " fmt, __FUNCTION__, ##arg); } while (0)
 
 /*---------------------------------------------------------------------*/
@@ -118,7 +118,7 @@ static void tda18271_read_regs(struct dvb_frontend *fe)
                printk("ERROR: %s: i2c_transfer returned: %d\n",
                       __FUNCTION__, ret);
 
-       if (debug > 2)
+       if (tda18271_debug > 2)
                tda18271_dump_regs(fe);
 }