HID: wacom: fix bit shift for Cintiq Companion 2
commit0cb65f3a0d18f45d93199c4cf653940354d9d2fa
authorAaron Armstrong Skomra <skomra@gmail.com>
Tue, 23 Jul 2019 18:09:15 +0000 (23 11:09 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 11 Aug 2019 10:22:14 +0000 (11 12:22 +0200)
treebd936a71059a1e37819092853c5d5dd99d4a517d
parent06fac08201a7166b2defa85635db40c4a2483c7d
HID: wacom: fix bit shift for Cintiq Companion 2

commit 693c3dab4e50403f91bca4b52fc6d8562a3180f6 upstream.

The bit indicating BTN_6 on this device is overshifted
by 2 bits, resulting in the incorrect button being
reported.

Also fix copy-paste mistake in comments.

Signed-off-by: Aaron Armstrong Skomra <aaron.skomra@wacom.com>
Reviewed-by: Ping Cheng <ping.cheng@wacom.com>
Link: https://github.com/linuxwacom/xf86-input-wacom/issues/71
Fixes: c7f0522a1ad1 ("HID: wacom: Slim down wacom_intuos_pad processing")
Cc: <stable@vger.kernel.org> # v4.5+
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/wacom_wac.c