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-core.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-core.c')
-rw-r--r-- | drivers/hid/hid-core.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 0796f64b3c54..8c7d48eff7b7 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c | |||
@@ -28,8 +28,6 @@ | |||
28 | #include <linux/input.h> | 28 | #include <linux/input.h> |
29 | #include <linux/wait.h> | 29 | #include <linux/wait.h> |
30 | 30 | ||
31 | #undef DEBUG_DATA | ||
32 | |||
33 | #include <linux/hid.h> | 31 | #include <linux/hid.h> |
34 | #include <linux/hiddev.h> | 32 | #include <linux/hiddev.h> |
35 | #include <linux/hid-debug.h> | 33 | #include <linux/hid-debug.h> |
@@ -951,7 +949,7 @@ int hid_input_report(struct hid_device *hid, int type, u8 *data, int size, int i | |||
951 | return -1; | 949 | return -1; |
952 | } | 950 | } |
953 | 951 | ||
954 | #ifdef DEBUG_DATA | 952 | #ifdef CONFIG_HID_DEBUG |
955 | printk(KERN_DEBUG __FILE__ ": report (size %u) (%snumbered)\n", size, report_enum->numbered ? "" : "un"); | 953 | printk(KERN_DEBUG __FILE__ ": report (size %u) (%snumbered)\n", size, report_enum->numbered ? "" : "un"); |
956 | #endif | 954 | #endif |
957 | 955 | ||
@@ -961,7 +959,7 @@ int hid_input_report(struct hid_device *hid, int type, u8 *data, int size, int i | |||
961 | size--; | 959 | size--; |
962 | } | 960 | } |
963 | 961 | ||
964 | #ifdef DEBUG_DATA | 962 | #ifdef CONFIG_HID_DEBUG |
965 | { | 963 | { |
966 | int i; | 964 | int i; |
967 | printk(KERN_DEBUG __FILE__ ": report %d (size %u) = ", n, size); | 965 | printk(KERN_DEBUG __FILE__ ": report %d (size %u) = ", n, size); |