aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/input
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2007-02-19 08:15:59 -0500
committerJiri Kosina <jkosina@suse.cz>2007-03-01 03:52:38 -0500
commitfdc9c566161c119febe4fab0f7c382416681fd8f (patch)
treebd68f4d1174948c9d02533694c0608a798cba3f6 /drivers/usb/input
parent9fa2ad5ff4d8ded8c29c7b6cc92a1c3a8d8a2079 (diff)
USB HID: use CONFIG_HID_DEBUG for outputting report descriptor
Report descriptor should be output when CONFIG_HID_DEBUG is defined. This also mitigates the need for DEBUG and DEBUG_DATA defines, so let's remove them. Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/usb/input')
-rw-r--r--drivers/usb/input/hid-core.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/input/hid-core.c b/drivers/usb/input/hid-core.c
index 905156c52ad3..378af7ae2bfb 100644
--- a/drivers/usb/input/hid-core.c
+++ b/drivers/usb/input/hid-core.c
@@ -27,9 +27,6 @@
27#include <linux/input.h> 27#include <linux/input.h>
28#include <linux/wait.h> 28#include <linux/wait.h>
29 29
30#undef DEBUG
31#undef DEBUG_DATA
32
33#include <linux/usb.h> 30#include <linux/usb.h>
34 31
35#include <linux/hid.h> 32#include <linux/hid.h>
@@ -1109,7 +1106,7 @@ static struct hid_device *usb_hid_configure(struct usb_interface *intf)
1109 if ((quirks & HID_QUIRK_CYMOTION)) 1106 if ((quirks & HID_QUIRK_CYMOTION))
1110 hid_fixup_cymotion_descriptor(rdesc, rsize); 1107 hid_fixup_cymotion_descriptor(rdesc, rsize);
1111 1108
1112#ifdef DEBUG_DATA 1109#ifdef CONFIG_HID_DEBUG
1113 printk(KERN_DEBUG __FILE__ ": report descriptor (size %u, read %d) = ", rsize, n); 1110 printk(KERN_DEBUG __FILE__ ": report descriptor (size %u, read %d) = ", rsize, n);
1114 for (n = 0; n < rsize; n++) 1111 for (n = 0; n < rsize; n++)
1115 printk(" %02x", (unsigned char) rdesc[n]); 1112 printk(" %02x", (unsigned char) rdesc[n]);