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:11:10 +0000 (11:11 +0200)
commit6331290180c53e859d55e2b0a45623235e45d741
treeba5330354ae7f20e8293407063f5df7691dc9a4e
parent484f8486a8bfeeb156c2346f2ce29fddb3bef7f0
HID: wacom: Don't register pad_input for touch switch

commit d6b675687a4ab4dba684716d97c8c6f81bf10905 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