summaryrefslogtreecommitdiff
path: root/include/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-11-27 21:54:41 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-05 18:42:18 -0200
commit4e89217b943cfb26f88f04920d44f2077931f0e7 (patch)
treef615f8fee9a6956892b59010369c78d46ba73b92 /include/media
parentfa3c39bd17449581eedaa1a0b7c8b67ec20c796e (diff)
V4L/DVB (13531): ir-common: rename the debug routine to allow exporting it
As newer IR common code will be added on other files, we need a global debug var inside the module. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/ir-common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/ir-common.h b/include/media/ir-common.h
index 5921776929e7..5964145d65e6 100644
--- a/include/media/ir-common.h
+++ b/include/media/ir-common.h
@@ -27,6 +27,10 @@
#include <linux/workqueue.h>
#include <linux/interrupt.h>
+extern int media_ir_debug; /* media_ir_debug level (0,1,2) */
+#define IR_dprintk(level, fmt, arg...) if (media_ir_debug >= level) \
+ printk(KERN_DEBUG fmt , ## arg)
+
#define IR_TYPE_RC5 1
#define IR_TYPE_PD 2 /* Pulse distance encoded IR */
#define IR_TYPE_OTHER 99