]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:17:19 +0000 (11:17 +0200)
commit023d55afc69b229d10d01b1d372f9991ab4bea4e
tree52f653b4a974c7875e82894a5d6554ffcc7687cb
parent0af7a6009590908a20c1075dc26bd2b0ffa32860
HID: wacom: Don't register pad_input for touch switch

commit 2dd38394b79b5e5dd140e6f8c954229f5723681e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/wacom_sys.c
drivers/hid/wacom_wac.c