Skip to content

Commit 4c60bc7

Browse files
spbnickJiri Kosina
authored andcommitted
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>
1 parent f592797 commit 4c60bc7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/hid/hid-uclogic-params.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,8 @@ static int uclogic_params_huion_init(struct uclogic_params *params,
713713

714714
/* If it's a custom keyboard interface */
715715
if (bInterfaceNumber == 1) {
716-
/* Keep everything intact */
716+
/* Keep everything intact, but mark pen usage invalid */
717+
p.pen.usage_invalid = true;
717718
goto output;
718719
/* Else, if it's not a pen interface */
719720
} else if (bInterfaceNumber != 0) {

0 commit comments

Comments
 (0)