]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: set EV_KEY and EV_ABS only for non-HID_GENERIC type of devices
authorPing Cheng <pinglinux@gmail.com>
Thu, 11 Mar 2021 19:30:09 +0000 (11:30 -0800)
committerJiri Kosina <jkosina@suse.cz>
Tue, 16 Mar 2021 14:41:20 +0000 (15:41 +0100)
commit87a712fa491dcf7fb79dd5cb667a2793d7a589f7
tree5b798531945b5e2ff6a038b52f5a213b2a8ed45b
parentf7ac22e2fd6f60727e7fc7fb7bc7e8c91eb7471d
HID: wacom: set EV_KEY and EV_ABS only for non-HID_GENERIC type of devices

Valid HID_GENERIC type of devices set EV_KEY and EV_ABS by wacom_map_usage.
When *_input_capabilities are reached, those devices should already have
their proper EV_* set. EV_KEY and EV_ABS only need to be set for
non-HID_GENERIC type of devices in *_input_capabilities.

Devices that don't support HID descitoprs will pass back to hid-input for
registration without being accidentally rejected by the introduction of
patch: "Input: refuse to register absolute devices without absinfo"

Fixes: 3887d4b73e37 ("Input: refuse to register absolute devices without absinfo")
Signed-off-by: Ping Cheng <ping.cheng@wacom.com>
Reviewed-by: Jason Gerecke <Jason.Gerecke@wacom.com>
Tested-by: Juan Garrido <Juan.Garrido@wacom.com>
CC: stable@vger.kernel.org
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c