]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
V4L/DVB: cx18-alsa: codingstyle cleanup
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Mon, 21 Dec 2009 02:50:02 +0000 (23:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:44 +0000 (15:10 -0300)
Remove some dead code and make a PCM specific module debug parameter to avoid
an extern reference.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx18/cx18-alsa-pcm.c

index 371dfb8d87561e246a0b4c76db610c4dbe53ff06..2d25c6f92d5d464033cc042cb7e4cfffe273ca8e 100644 (file)
 #include "cx18-fileops.h"
 #include "cx18-alsa.h"
 
-extern int cx18_alsa_debug;
+static unsigned int pcm_debug;
+module_param(pcm_debug, int, 0644);
+MODULE_PARM_DESC(pcm_debug, "enable debug messages for pcm");
 
 #define dprintk(fmt, arg...) do {                                      \
-           if (cx18_alsa_debug)                                        \
-               printk(KERN_INFO "cx18-alsa %s: " fmt,                  \
+           if (pcm_debug)                                              \
+               printk(KERN_INFO "cx18-alsa-pcm %s: " fmt,              \
                                  __func__, ##arg);                     \
        } while (0)