]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Don't register pad_input for touch switch
authorPing Cheng <pinglinux@gmail.com>
Fri, 13 May 2022 21:52:37 +0000 (14:52 -0700)
committerJiri Kosina <jkosina@suse.cz>
Fri, 27 May 2022 07:05:50 +0000 (09:05 +0200)
commita79faf2d3f0ae95f1faadbb1e4e7a699ea15a870
treed288107600628acf546291f02da2ff30756b0a2c
parent751e754720dcc3e0fabfa80133ba744e33ae9317
HID: wacom: Don't register pad_input for touch switch

Touch switch state is received through WACOM_PAD_FIELD. However, it
is reported by touch_input. Don't register pad_input if no other pad
events require the interface.

Cc: stable@vger.kernel.org
Signed-off-by: Ping Cheng <ping.cheng@wacom.com>
Reviewed-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_sys.c
drivers/hid/wacom_wac.c