]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
HID: rmi: Support non rmi devices by passing events to hid-input
authorAndrew Duggan <aduggan@synaptics.com>
Fri, 19 Dec 2014 22:45:41 +0000 (14:45 -0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 22 Dec 2014 13:22:57 +0000 (14:22 +0100)
commit2f43de605e700f5aa5cad15e19f8ffe54b1d4c86
tree0a9a2c7675ac7f63c6935cd2d7b2036cd2325243
parente39f2d5956999c05c85814787a113ffadbcd4b26
HID: rmi: Support non rmi devices by passing events to hid-input

Allowing hid-rmi to bind to non rmi devices allows us to support composite USB
devices which contain several HID devices one of which is a HID touchpad.
Since all of the devices have the same VID and PID we can add the device
to the hid_have_special_driver list and have hid-rmi handle all of the devices.
Then hid-rmi's probe can look for the rmi specific HID report IDs and decide if
it should handle the device as a rmi device or simply report that the events
needs additional processing.

Signed-off-by: Andrew Duggan <aduggan@synaptics.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-rmi.c