aboutsummaryrefslogtreecommitdiff
path: root/drivers/hid
diff options
context:
space:
mode:
authorNikolai Kondrashov2022-04-21 19:50:52 +0200
committerJiri Kosina2022-05-06 08:34:32 +0200
commit4c60bc7d1f2a908f53260bc4a0831b3ea204f327 (patch)
tree8c5fa8ef63ee4126fdb5fc4b09fa3f27f3d418bb /drivers/hid
parentf5927973f8d667eb93b81f796039c0ef94449866 (diff)
HID: uclogic: Disable pen usage for Huion keyboard interfaces
Disable pen usage inputs for Huion interfaces reporting on-the-frame buttons. We don't want to change those, as they mostly work, but we want to avoid creation of a mute pen interface, confusing to users. Signed-off-by: Nikolai Kondrashov <spbnick@gmail.com> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-uclogic-params.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hid/hid-uclogic-params.c b/drivers/hid/hid-uclogic-params.c
index b85585ac3372..22f9c4f9da8a 100644
--- a/drivers/hid/hid-uclogic-params.c
+++ b/drivers/hid/hid-uclogic-params.c
@@ -713,7 +713,8 @@ static int uclogic_params_huion_init(struct uclogic_params *params,
/* If it's a custom keyboard interface */
if (bInterfaceNumber == 1) {
- /* Keep everything intact */
+ /* Keep everything intact, but mark pen usage invalid */
+ p.pen.usage_invalid = true;
goto output;
/* Else, if it's not a pen interface */
} else if (bInterfaceNumber != 0) {