diff options
author | Jiri Kosina <jkosina@suse.cz> | 2007-01-30 10:02:24 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2007-02-05 04:00:45 -0500 |
commit | dd64c151b978dc78ed535433d930c75b5c15deeb (patch) | |
tree | 4acccad91bee0a5bcab5d7d87cdc35cfbea9ec2a /drivers/hid/hid-input.c | |
parent | 43c7bf0472ec1f813fccc6012654399345898491 (diff) |
HID: move away from DEBUG defines in favor of CONFIG_HID_DEBUG
CONFIG_INPUT_DEBUG is non-existent option, so remove anything depending
on it.
Also, as we have new CONFIG_HID_DEBUG, this should be used on places
where ifdef DEBUG was used before.
Suggested by Adrian Bunk.
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-input.c')
-rw-r--r-- | drivers/hid/hid-input.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 4824b19b8646..25d180a24fc4 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c | |||
@@ -31,8 +31,6 @@ | |||
31 | #include <linux/slab.h> | 31 | #include <linux/slab.h> |
32 | #include <linux/kernel.h> | 32 | #include <linux/kernel.h> |
33 | 33 | ||
34 | #undef DEBUG | ||
35 | |||
36 | #include <linux/hid.h> | 34 | #include <linux/hid.h> |
37 | #include <linux/hid-debug.h> | 35 | #include <linux/hid-debug.h> |
38 | 36 | ||
@@ -253,7 +251,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel | |||
253 | 251 | ||
254 | field->hidinput = hidinput; | 252 | field->hidinput = hidinput; |
255 | 253 | ||
256 | #ifdef DEBUG | 254 | #ifdef CONFIG_HID_DEBUG |
257 | printk(KERN_DEBUG "Mapping: "); | 255 | printk(KERN_DEBUG "Mapping: "); |
258 | hid_resolv_usage(usage->hid); | 256 | hid_resolv_usage(usage->hid); |
259 | printk(" ---> "); | 257 | printk(" ---> "); |
@@ -690,7 +688,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel | |||
690 | return; | 688 | return; |
691 | 689 | ||
692 | ignore: | 690 | ignore: |
693 | #ifdef DEBUG | 691 | #ifdef CONFIG_HID_DEBUG |
694 | printk("IGNORED\n"); | 692 | printk("IGNORED\n"); |
695 | #endif | 693 | #endif |
696 | return; | 694 | return; |