Home Home > GIT Browse > SLE12-SP5-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.com>2019-08-21 12:47:31 +0200
committerOliver Neukum <oneukum@suse.com>2019-08-21 12:47:31 +0200
commitadb4290ca9a4afbd8c0d0569873c5798e0250786 (patch)
tree9e9471b18858094ad28cba9320b2acefca2fa18e
parent03f127437880dc89f1d2cf7062440b120b02adf7 (diff)
HID: wacom: correct misreported EKR ring values (bsc#1142635).
-rw-r--r--drivers/hid/wacom_wac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c
index 73deeddfc9eb..8151afedb2d1 100644
--- a/drivers/hid/wacom_wac.c
+++ b/drivers/hid/wacom_wac.c
@@ -1065,7 +1065,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);