diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hid/hid-core.c | 6 | ||||
-rw-r--r-- | drivers/usb/input/hid-core.c | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 8474a7923322..1dd9e4f0df1e 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c | |||
@@ -819,8 +819,8 @@ static void hid_process_event(struct hid_device *hid, struct hid_field *field, s | |||
819 | hid_dump_input(usage, value); | 819 | hid_dump_input(usage, value); |
820 | if (hid->claimed & HID_CLAIMED_INPUT) | 820 | if (hid->claimed & HID_CLAIMED_INPUT) |
821 | hidinput_hid_event(hid, field, usage, value); | 821 | hidinput_hid_event(hid, field, usage, value); |
822 | if (hid->claimed & HID_CLAIMED_HIDDEV && interrupt) | 822 | if (hid->claimed & HID_CLAIMED_HIDDEV && interrupt && hid->hiddev_hid_event) |
823 | hiddev_hid_event(hid, field, usage, value); | 823 | hid->hiddev_hid_event(hid, field, usage, value); |
824 | } | 824 | } |
825 | 825 | ||
826 | /* | 826 | /* |
@@ -940,3 +940,5 @@ int hid_set_field(struct hid_field *field, unsigned offset, __s32 value) | |||
940 | } | 940 | } |
941 | EXPORT_SYMBOL_GPL(hid_set_field); | 941 | EXPORT_SYMBOL_GPL(hid_set_field); |
942 | 942 | ||
943 | MODULE_LICENSE(DRIVER_LICENSE); | ||
944 | |||
diff --git a/drivers/usb/input/hid-core.c b/drivers/usb/input/hid-core.c index 0991c4b751a6..4fc828041d0f 100644 --- a/drivers/usb/input/hid-core.c +++ b/drivers/usb/input/hid-core.c | |||
@@ -1284,6 +1284,9 @@ static struct hid_device *usb_hid_configure(struct usb_interface *intf) | |||
1284 | hid->hidinput_input_event = usb_hidinput_input_event; | 1284 | hid->hidinput_input_event = usb_hidinput_input_event; |
1285 | hid->hidinput_open = hidinput_open; | 1285 | hid->hidinput_open = hidinput_open; |
1286 | hid->hidinput_close = hidinput_close; | 1286 | hid->hidinput_close = hidinput_close; |
1287 | #ifdef CONFIG_USB_HIDDEV | ||
1288 | hid->hiddev_hid_event = hiddev_hid_event; | ||
1289 | #endif | ||
1287 | 1290 | ||
1288 | return hid; | 1291 | return hid; |
1289 | 1292 | ||