]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Fix pad button range for CINTIQ_COMPANION_2
authorJason Gerecke <killertofu@gmail.com>
Wed, 16 Dec 2015 21:37:36 +0000 (13:37 -0800)
committerJiri Kosina <jkosina@suse.cz>
Thu, 17 Dec 2015 23:03:07 +0000 (00:03 +0100)
commit2181be71a1ed54903544b4faa6ff27a7e30e2669
tree4bf1977a7ed0cb5602cc106c87a5a47cd21f4b12
parentd05d7f788027a88a84b0284efa1018f6a42b12c1
HID: wacom: Fix pad button range for CINTIQ_COMPANION_2

Commit 2567dd3 incorrectly constructs the 'buttons' variable for the
CINTIQ_COMPANION_2 case. The high nybble of data[2] is shifted four
bits too far, leaving the bits associated with BTN_7 through BTN_A
unset.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c