HID: alps: allow incoming reports when only the trackstick is opened
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 12 Oct 2018 14:05:25 +0000 (16:05 +0200)
committerJiri Kosina <jkosina@suse.cz>
Fri, 26 Oct 2018 15:27:13 +0000 (17:27 +0200)
commit7dd8db68949a7acc5bd528ee0ecb8f8720f49921
treeb79112615f9b8a838019c093434b666037278633
parent6298944d8f57f40ee2a3e6dcea1253e78d7a9969
HID: alps: allow incoming reports when only the trackstick is opened

If userspace only reads the trackstick node, and no one is listening to
the touchpad nor the hidraw node then, the device is not powered on.

Add open/close callbacks to allow users to disable the touchpad in Gnome
while keeping the trackstick active.

Link: https://bugzilla.redhat.com/show_bug.cgi?id=1559632
Link: https://gitlab.gnome.org/GNOME/mutter/issues/128
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-alps.c