]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
HID: wacom: fixup quirks setup for WACOM_DEVICETYPE_PAD
authorJiri Kosina <jkosina@suse.cz>
Mon, 16 Nov 2015 23:24:14 +0000 (00:24 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 16 Nov 2015 23:24:14 +0000 (00:24 +0100)
commita3088abc68f79ac30e6e8ccb07a15c8093e39684
treed0d8c0bfaf060b2c5b34792e8df5abe3303b5a90
parentff38e82931aeaa339d6bf4a9980e011cbfd14927
HID: wacom: fixup quirks setup for WACOM_DEVICETYPE_PAD

Given that INTUOSHT < BAMBOO_PT

features->type >= INTUOSHT || features->type <= BAMBOO_PT

condition is always true, and therefore device_type is under certain
circumstances wrongly set with WACOM_DEVICETYPE_PAD bit set.

Fix the condition so that it actually represents the range as intended.

Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c