diff options
author | Jiri Kosina <jkosina@suse.cz> | 2007-01-25 05:43:31 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2007-02-05 04:00:38 -0500 |
commit | c080d89ad91e98fec0e8fc5f448a1ad899bd85c7 (patch) | |
tree | 169a03a0e8d16fe95e7d689dd9fa7775340d5dc4 /include/linux/hid.h | |
parent | 20eb12790670985c8e30821218993bd260387b89 (diff) |
HID: hid debug from hid-debug.h to hid layer
hid-debug.h contains a lot of code, and should not therefore
be a header.
This patch moves the code to generic hid layer as .c source, and
introduces CONFIG_HID_DEBUG to conditionally compile it, instead
of playing with #define DEBUG and including hid-debug.h.
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r-- | include/linux/hid.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index 18d0f2ce817f..189460e7b03f 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h | |||
@@ -472,16 +472,6 @@ struct hid_descriptor { | |||
472 | struct hid_class_descriptor desc[1]; | 472 | struct hid_class_descriptor desc[1]; |
473 | } __attribute__ ((packed)); | 473 | } __attribute__ ((packed)); |
474 | 474 | ||
475 | #ifdef DEBUG | ||
476 | #include "hid-debug.h" | ||
477 | #else | ||
478 | #define hid_dump_input(a,b) do { } while (0) | ||
479 | #define hid_dump_device(c) do { } while (0) | ||
480 | #define hid_dump_field(a,b) do { } while (0) | ||
481 | #define resolv_usage(a) do { } while (0) | ||
482 | #define resolv_event(a,b) do { } while (0) | ||
483 | #endif | ||
484 | |||
485 | /* Applications from HID Usage Tables 4/8/99 Version 1.1 */ | 475 | /* Applications from HID Usage Tables 4/8/99 Version 1.1 */ |
486 | /* We ignore a few input applications that are not widely used */ | 476 | /* We ignore a few input applications that are not widely used */ |
487 | #define IS_INPUT_APPLICATION(a) (((a >= 0x00010000) && (a <= 0x00010008)) || (a == 0x00010080) || (a == 0x000c0001)) | 477 | #define IS_INPUT_APPLICATION(a) (((a >= 0x00010000) && (a <= 0x00010008)) || (a == 0x00010080) || (a == 0x000c0001)) |