]> 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)
commitefbfec15d0d914c0ebda56fc436de1624a480777
treed0d8c0bfaf060b2c5b34792e8df5abe3303b5a90
parent8b69fafbf87188e7a5ae481e01ef37a886a43564
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