diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/hid.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index fc6f74228da3..5a969a137b85 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h | |||
| @@ -433,6 +433,10 @@ struct hid_device { /* device report descriptor */ | |||
| 433 | int (*hidinput_open) (struct input_dev *); | 433 | int (*hidinput_open) (struct input_dev *); |
| 434 | void (*hidinput_close) (struct input_dev *); | 434 | void (*hidinput_close) (struct input_dev *); |
| 435 | 435 | ||
| 436 | /* hiddev event handler */ | ||
| 437 | void (*hiddev_hid_event) (struct hid_device *, struct hid_field *field, | ||
| 438 | struct hid_usage *, __s32); | ||
| 439 | |||
| 436 | #ifdef CONFIG_USB_HIDINPUT_POWERBOOK | 440 | #ifdef CONFIG_USB_HIDINPUT_POWERBOOK |
| 437 | unsigned long pb_pressed_fn[NBITS(KEY_MAX)]; | 441 | unsigned long pb_pressed_fn[NBITS(KEY_MAX)]; |
| 438 | unsigned long pb_pressed_numlock[NBITS(KEY_MAX)]; | 442 | unsigned long pb_pressed_numlock[NBITS(KEY_MAX)]; |
| @@ -477,13 +481,9 @@ struct hid_descriptor { | |||
| 477 | #define resolv_event(a,b) do { } while (0) | 481 | #define resolv_event(a,b) do { } while (0) |
| 478 | #endif | 482 | #endif |
| 479 | 483 | ||
| 480 | #ifdef CONFIG_HID | ||
| 481 | /* Applications from HID Usage Tables 4/8/99 Version 1.1 */ | 484 | /* Applications from HID Usage Tables 4/8/99 Version 1.1 */ |
| 482 | /* We ignore a few input applications that are not widely used */ | 485 | /* We ignore a few input applications that are not widely used */ |
| 483 | #define IS_INPUT_APPLICATION(a) (((a >= 0x00010000) && (a <= 0x00010008)) || (a == 0x00010080) || (a == 0x000c0001)) | 486 | #define IS_INPUT_APPLICATION(a) (((a >= 0x00010000) && (a <= 0x00010008)) || (a == 0x00010080) || (a == 0x000c0001)) |
| 484 | #else | ||
| 485 | #define IS_INPUT_APPLICATION(a) (0) | ||
| 486 | #endif | ||
| 487 | 487 | ||
| 488 | /* HID core API */ | 488 | /* HID core API */ |
| 489 | extern void hidinput_hid_event(struct hid_device *, struct hid_field *, struct hid_usage *, __s32); | 489 | extern void hidinput_hid_event(struct hid_device *, struct hid_field *, struct hid_usage *, __s32); |
