]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
HID: wacom: Apply lowres quirk to BAMBOO_TOUCH devices
authorJason Gerecke <killertofu@gmail.com>
Fri, 4 Dec 2015 22:45:27 +0000 (14:45 -0800)
committerJiri Kosina <jkosina@suse.cz>
Tue, 8 Dec 2015 14:12:00 +0000 (15:12 +0100)
When splitting the touch-only "BAMBOO_TOUCH" type out of the existing
"BAMBOO_PT" type in 3b164a00, the lowres quirk was not updated so that
it would continue to apply to these devices (effectively only the 0xD0).
The absence of this quirk does not significantly impact usability, but
is a correctness issue nonetheless.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c

index 3953416ff753b738fede1e8dd9377c363eec516d..bec23001c219e6b1bf51bd4cfee6fc85ecb1be1b 100644 (file)
@@ -2421,7 +2421,7 @@ void wacom_setup_device_quirks(struct wacom *wacom)
                features->quirks |= WACOM_QUIRK_BATTERY;
 
        /* quirk for bamboo touch with 2 low res touches */
-       if (features->type == BAMBOO_PT &&
+       if ((features->type == BAMBOO_PT || features->type == BAMBOO_TOUCH) &&
            features->pktlen == WACOM_PKGLEN_BBTOUCH) {
                features->x_max <<= 5;
                features->y_max <<= 5;