diff options
author | Ping Cheng <pinglinux@gmail.com> | 2022-05-14 00:52:37 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2022-05-27 10:05:50 +0300 |
commit | d6b675687a4ab4dba684716d97c8c6f81bf10905 (patch) | |
tree | d288107600628acf546291f02da2ff30756b0a2c /drivers/hid/wacom_sys.c | |
parent | 7ccced33a0ba39b0103ae1dfbf7f1dffdc0a1bc2 (diff) | |
download | linux-d6b675687a4ab4dba684716d97c8c6f81bf10905.tar.xz |
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>
Diffstat (limited to 'drivers/hid/wacom_sys.c')
-rw-r--r-- | drivers/hid/wacom_sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c index 620fe74f5676..98384b911288 100644 --- a/drivers/hid/wacom_sys.c +++ b/drivers/hid/wacom_sys.c @@ -2121,7 +2121,7 @@ static int wacom_register_inputs(struct wacom *wacom) error = wacom_setup_pad_input_capabilities(pad_input_dev, wacom_wac); if (error) { - /* no pad in use on this interface */ + /* no pad events using this interface */ input_free_device(pad_input_dev); wacom_wac->pad_input = NULL; pad_input_dev = NULL; |