]> git.baikalelectronics.ru Git - kernel.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)
commit946472889c67652028f0835432acddb35ad718ee
treed0d8c0bfaf060b2c5b34792e8df5abe3303b5a90
parent8af9b07b9a7ffba3e89fc487357bab040abb5523
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