aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-alsa-pcm.c
diff options
context:
space:
mode:
authorDevin Heitmueller <dheitmueller@kernellabs.com>2009-12-20 23:50:02 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-02-26 15:10:44 -0300
commit71036ef26b0026742c8ab79a54937aac1439350d (patch)
tree3e42016e3ffd5762936d2427e3e39e49290f7787 /drivers/media/video/cx18/cx18-alsa-pcm.c
parentf8bd9d26c59d0df0335bf43191feb732f2c8b6ad (diff)
downloadkernel_samsung_smdk4412-71036ef26b0026742c8ab79a54937aac1439350d.tar.gz
kernel_samsung_smdk4412-71036ef26b0026742c8ab79a54937aac1439350d.tar.bz2
kernel_samsung_smdk4412-71036ef26b0026742c8ab79a54937aac1439350d.zip
V4L/DVB: cx18-alsa: codingstyle cleanup
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>
Diffstat (limited to 'drivers/media/video/cx18/cx18-alsa-pcm.c')
-rw-r--r--drivers/media/video/cx18/cx18-alsa-pcm.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/media/video/cx18/cx18-alsa-pcm.c b/drivers/media/video/cx18/cx18-alsa-pcm.c
index 371dfb8d875..2d25c6f92d5 100644
--- a/drivers/media/video/cx18/cx18-alsa-pcm.c
+++ b/drivers/media/video/cx18/cx18-alsa-pcm.c
@@ -37,11 +37,13 @@
#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)