Skip to content

Commit 76f66b8

Browse files
skomragregkh
authored andcommitted
HID: wacom: correct misreported EKR ring values
commit fcf887e upstream. The EKR ring claims a range of 0 to 71 but actually reports values 1 to 72. The ring is used in relative mode so this change should not affect users. Signed-off-by: Aaron Armstrong Skomra <[email protected]> Fixes: 72b236d ("HID: wacom: Add support for Express Key Remote.") Cc: <[email protected]> # v4.3+ Reviewed-by: Ping Cheng <[email protected]> Reviewed-by: Jason Gerecke <[email protected]> Signed-off-by: Jiri Kosina <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8512973 commit 76f66b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/wacom_wac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ static int wacom_remote_irq(struct wacom_wac *wacom_wac, size_t len)
10611061
input_report_key(input, BTN_BASE2, (data[11] & 0x02));
10621062

10631063
if (data[12] & 0x80)
1064-
input_report_abs(input, ABS_WHEEL, (data[12] & 0x7f));
1064+
input_report_abs(input, ABS_WHEEL, (data[12] & 0x7f) - 1);
10651065
else
10661066
input_report_abs(input, ABS_WHEEL, 0);
10671067

0 commit comments

Comments
 (0)