diff options
author | Jiri Kosina <jkosina@suse.cz> | 2007-01-25 11:43:31 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2007-02-05 10:00:38 +0100 |
commit | c080d89ad91e98fec0e8fc5f448a1ad899bd85c7 (patch) | |
tree | 169a03a0e8d16fe95e7d689dd9fa7775340d5dc4 /include/linux/hid.h | |
parent | 20eb12790670985c8e30821218993bd260387b89 (diff) | |
download | kernel_samsung_smdk4412-c080d89ad91e98fec0e8fc5f448a1ad899bd85c7.zip kernel_samsung_smdk4412-c080d89ad91e98fec0e8fc5f448a1ad899bd85c7.tar.gz kernel_samsung_smdk4412-c080d89ad91e98fec0e8fc5f448a1ad899bd85c7.tar.bz2 |
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 18d0f2c..189460e 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -472,16 +472,6 @@ struct hid_descriptor { struct hid_class_descriptor desc[1]; } __attribute__ ((packed)); -#ifdef DEBUG -#include "hid-debug.h" -#else -#define hid_dump_input(a,b) do { } while (0) -#define hid_dump_device(c) do { } while (0) -#define hid_dump_field(a,b) do { } while (0) -#define resolv_usage(a) do { } while (0) -#define resolv_event(a,b) do { } while (0) -#endif - /* Applications from HID Usage Tables 4/8/99 Version 1.1 */ /* We ignore a few input applications that are not widely used */ #define IS_INPUT_APPLICATION(a) (((a >= 0x00010000) && (a <= 0x00010008)) || (a == 0x00010080) || (a == 0x000c0001)) |