Home Home > GIT Browse > SLE12-SP4
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-07-11 09:50:59 +0200
committerTakashi Iwai <tiwai@suse.de>2018-07-11 09:51:10 +0200
commit6d8c027521860a35a4be4e515892df6b41414c31 (patch)
tree2973ca829d6d733d089b372ab6fd05d5d384a491
parente93bcf4ed8d27e5fa3e5faf95d8e7737e2bd3f86 (diff)
HID: wacom: Correct touch maximum XY of 2nd-gen Intuos
(bsc#1051510). suse-commit: ed106ff3215ecf679ea6a5713efd9c2eaa83a489
-rw-r--r--drivers/hid/wacom_wac.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c
index a165f2f79f3d..fee11cf9a871 100644
--- a/drivers/hid/wacom_wac.c
+++ b/drivers/hid/wacom_wac.c
@@ -3172,8 +3172,14 @@ void wacom_setup_device_quirks(struct wacom *wacom)
if (features->type >= INTUOSHT && features->type <= BAMBOO_PT)
features->device_type |= WACOM_DEVICETYPE_PAD;
- features->x_max = 4096;
- features->y_max = 4096;
+ if (features->type == INTUOSHT2) {
+ features->x_max = features->x_max / 10;
+ features->y_max = features->y_max / 10;
+ }
+ else {
+ features->x_max = 4096;
+ features->y_max = 4096;
+ }
}
else if (features->pktlen == WACOM_PKGLEN_BBTOUCH) {
features->device_type |= WACOM_DEVICETYPE_PAD;