HID: rmi: Support touchpads with external buttons
authorAndrew Duggan <aduggan@synaptics.com>
Thu, 8 Jan 2015 22:51:34 +0000 (14:51 -0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 12 Jan 2015 09:12:00 +0000 (10:12 +0100)
commit79364d87af239e2029aeba3b82bd79c355b9bb86
tree861cfcb93fabf80e70b7f74f9ae63685bd7ad434
parentb8aed6ea39a70a9b9b8de9df8655ac36719b4d3b
HID: rmi: Support touchpads with external buttons

The external buttons on HID touchpads are connected as pass through devices and
button events are not reported in the rmi registers. As a result on these
devices we need to allow the HID generic desktop button events to be processed
by hid-input. Unfortunately, there is no way to query the touchpad to determine
that it has pass through buttons so the RMI_DEVICE_HAS_PHYS_BUTTONS should be
set manually when adding the device to rmi_id[].

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