]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/hid/wacom_wac.c
HID: wacom: make the WL connection friendly for the desktop
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Thu, 11 Sep 2014 17:14:04 +0000 (13:14 -0400)
committerJiri Kosina <jkosina@suse.cz>
Fri, 12 Sep 2014 12:13:08 +0000 (14:13 +0200)
commit12969e3bdce5f63fbce2b6d616fdbc8eeb539f01
tree60fee630cad6ce12e4ddda6ced5139c8d52a05dd
parent912ca216b548e0fe399f300b4511b0277fb874e4
HID: wacom: make the WL connection friendly for the desktop

Currently, tablets connected to the WL receiver all share the same
VID/PID. There is no way for the user space to know which one is which
besides parsing the name. We can force the PID to be set to the
actual hardware. This way, the input device will have the correct PID
which can be match in libwacom.

With only this trick, the pad input does not inherit the ID_INPUT_TABLET
udev property from its parent. We can force udev to accept it by declaring
a BTN_STYLUS which is never used.

This way, tablets connected through WL can be used from the user point of
view in the same way they are used while connected through wire.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Reviewed-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_sys.c
drivers/hid/wacom_wac.c