HID: wacom: Report 2nd-gen Intuos Pro S center button status over BT
authorJason Gerecke <killertofu@gmail.com>
Fri, 24 Apr 2020 21:04:00 +0000 (14:04 -0700)
committerJiri Kosina <jkosina@suse.cz>
Wed, 29 Apr 2020 19:40:53 +0000 (21:40 +0200)
commitdcce8ef8f70a8e38e6c47c1bae8b312376c04420
tree09a5ed8403004e07e679788139bfc6bfdc774c11
parent0ed08faded1da03eb3def61502b27f81aef2e615
HID: wacom: Report 2nd-gen Intuos Pro S center button status over BT

The state of the center button was not reported to userspace for the
2nd-gen Intuos Pro S when used over Bluetooth due to the pad handling
code not being updated to support its reduced number of buttons. This
patch uses the actual number of buttons present on the tablet to
assemble a button state bitmap.

Link: https://github.com/linuxwacom/xf86-input-wacom/issues/112
Fixes: cd47de45b855 ("HID: wacom: Add 2nd gen Intuos Pro Small support")
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Cc: stable@vger.kernel.org # v5.3+
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c