diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-11-27 19:54:41 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:42:18 -0500 |
commit | 4e89217b943cfb26f88f04920d44f2077931f0e7 (patch) | |
tree | f615f8fee9a6956892b59010369c78d46ba73b92 /include/media/ir-common.h | |
parent | fa3c39bd17449581eedaa1a0b7c8b67ec20c796e (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/ir-common.h')
-rw-r--r-- | include/media/ir-common.h | 4 |
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 @@ | |||
27 | #include <linux/workqueue.h> | 27 | #include <linux/workqueue.h> |
28 | #include <linux/interrupt.h> | 28 | #include <linux/interrupt.h> |
29 | 29 | ||
30 | extern int media_ir_debug; /* media_ir_debug level (0,1,2) */ | ||
31 | #define IR_dprintk(level, fmt, arg...) if (media_ir_debug >= level) \ | ||
32 | printk(KERN_DEBUG fmt , ## arg) | ||
33 | |||
30 | #define IR_TYPE_RC5 1 | 34 | #define IR_TYPE_RC5 1 |
31 | #define IR_TYPE_PD 2 /* Pulse distance encoded IR */ | 35 | #define IR_TYPE_PD 2 /* Pulse distance encoded IR */ |
32 | #define IR_TYPE_OTHER 99 | 36 | #define IR_TYPE_OTHER 99 |