Home Home > GIT Browse > SLE12-SP5-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.com>2019-08-21 12:44:33 +0200
committerOliver Neukum <oneukum@suse.com>2019-08-21 12:44:33 +0200
commit03f127437880dc89f1d2cf7062440b120b02adf7 (patch)
tree7601bc8502d33efce07f2931c4680029cf78e33e
parent671c1a44d8c59e2da7105bb4c7bc26a48b2939da (diff)
HID: wacom: Correct distance scale for 2nd-gen Intuos devices
(bsc#1142635). suse-commit: 938b6bc80d2ee3262fdc6dc1f677239f1dbb29c2
-rw-r--r--drivers/hid/wacom_wac.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c
index 84ebeba831d1..73deeddfc9eb 100644
--- a/drivers/hid/wacom_wac.c
+++ b/drivers/hid/wacom_wac.c
@@ -850,6 +850,8 @@ static int wacom_intuos_general(struct wacom_wac *wacom)
y >>= 1;
distance >>= 1;
}
+ if (features->type == INTUOSHT2)
+ distance = features->distance_max - distance;
input_report_abs(input, ABS_X, x);
input_report_abs(input, ABS_Y, y);
input_report_abs(input, ABS_DISTANCE, distance);