Message ID | 1566235230-11617-1-git-send-email-aaron.skomra@wacom.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | fcf887e7caaa813eea821d11bf2b7619a37df37a |
Delegated to: | Jiri Kosina |
Headers | show |
Series | HID: wacom: correct misreported EKR ring values | expand |
diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c index 6c3bf8846b52..949761dd29ca 100644 --- a/drivers/hid/wacom_wac.c +++ b/drivers/hid/wacom_wac.c @@ -819,7 +819,7 @@ static int wacom_remote_irq(struct wacom_wac *wacom_wac, size_t len) input_report_key(input, BTN_BASE2, (data[11] & 0x02)); if (data[12] & 0x80) - input_report_abs(input, ABS_WHEEL, (data[12] & 0x7f)); + input_report_abs(input, ABS_WHEEL, (data[12] & 0x7f) - 1); else input_report_abs(input, ABS_WHEEL, 0);