mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] Generic HID layer - hiddev
- hiddev is USB-only (agreed with Marcel Holtmann that Bluetooth currently doesn't need it, and future planned interface (rawhid) will be more flexible and usable) - both HID and USB-hid can be now compiled as modules (wasn't possible before hiddev was fully separated from generic HID layer) Signed-off-by: Jiri Kosina <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]> Cc: Dmitry Torokhov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
4916b3a57f
commit
aa938f7974
3 changed files with 11 additions and 6 deletions
|
|
@ -819,8 +819,8 @@ static void hid_process_event(struct hid_device *hid, struct hid_field *field, s
|
|||
hid_dump_input(usage, value);
|
||||
if (hid->claimed & HID_CLAIMED_INPUT)
|
||||
hidinput_hid_event(hid, field, usage, value);
|
||||
if (hid->claimed & HID_CLAIMED_HIDDEV && interrupt)
|
||||
hiddev_hid_event(hid, field, usage, value);
|
||||
if (hid->claimed & HID_CLAIMED_HIDDEV && interrupt && hid->hiddev_hid_event)
|
||||
hid->hiddev_hid_event(hid, field, usage, value);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -940,3 +940,5 @@ int hid_set_field(struct hid_field *field, unsigned offset, __s32 value)
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(hid_set_field);
|
||||
|
||||
MODULE_LICENSE(DRIVER_LICENSE);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue