diff options
Diffstat (limited to 'include/linux/hid-debug.h')
-rw-r--r-- | include/linux/hid-debug.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/hid-debug.h b/include/linux/hid-debug.h index 8663f216c563..2d6100edf204 100644 --- a/include/linux/hid-debug.h +++ b/include/linux/hid-debug.h | |||
@@ -24,7 +24,10 @@ | |||
24 | 24 | ||
25 | #ifdef CONFIG_DEBUG_FS | 25 | #ifdef CONFIG_DEBUG_FS |
26 | 26 | ||
27 | #include <linux/kfifo.h> | ||
28 | |||
27 | #define HID_DEBUG_BUFSIZE 512 | 29 | #define HID_DEBUG_BUFSIZE 512 |
30 | #define HID_DEBUG_FIFOSIZE 512 | ||
28 | 31 | ||
29 | void hid_dump_input(struct hid_device *, struct hid_usage *, __s32); | 32 | void hid_dump_input(struct hid_device *, struct hid_usage *, __s32); |
30 | void hid_dump_report(struct hid_device *, int , u8 *, int); | 33 | void hid_dump_report(struct hid_device *, int , u8 *, int); |
@@ -37,11 +40,8 @@ void hid_debug_init(void); | |||
37 | void hid_debug_exit(void); | 40 | void hid_debug_exit(void); |
38 | void hid_debug_event(struct hid_device *, char *); | 41 | void hid_debug_event(struct hid_device *, char *); |
39 | 42 | ||
40 | |||
41 | struct hid_debug_list { | 43 | struct hid_debug_list { |
42 | char *hid_debug_buf; | 44 | DECLARE_KFIFO_PTR(hid_debug_fifo, char); |
43 | int head; | ||
44 | int tail; | ||
45 | struct fasync_struct *fasync; | 45 | struct fasync_struct *fasync; |
46 | struct hid_device *hdev; | 46 | struct hid_device *hdev; |
47 | struct list_head node; | 47 | struct list_head node; |
@@ -64,4 +64,3 @@ struct hid_debug_list { | |||
64 | #endif | 64 | #endif |
65 | 65 | ||
66 | #endif | 66 | #endif |
67 | |||