]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - drivers/hid/wacom_wac.c
HID: wacom: correct misreported EKR ring values
[thirdparty/linux.git] / drivers / hid / wacom_wac.c
index 7a9e229e6253fcc9b478deb600eb688204b3043e..1713235d28cb01c1038b6fd1590849f684018510 100644 (file)
@@ -1061,7 +1061,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);