]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
HID: uclogic: Disable pen usage for Huion keyboard interfaces
authorNikolai Kondrashov <spbnick@gmail.com>
Thu, 21 Apr 2022 17:50:52 +0000 (19:50 +0200)
committerJiri Kosina <jkosina@suse.cz>
Fri, 6 May 2022 06:34:32 +0000 (08:34 +0200)
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>
drivers/hid/hid-uclogic-params.c

index b85585ac33722bd4f2eeecf44c5e86e21e66beb8..22f9c4f9da8a6ca563f9ddd81b468024363a71a0 100644 (file)
@@ -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) {