]> git.hungrycats.org Git - linux/commitdiff
HID: uclogic: Add missing suffix for digitalizers
authorJosé Expósito <jose.exposito89@gmail.com>
Mon, 15 Aug 2022 14:26:15 +0000 (16:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Oct 2022 07:58:31 +0000 (09:58 +0200)
commit 0977fda0587cbc5403651ba169e264aa01e8a026 upstream.

The Pen (0x02) application usage was changed to Digitalizer (0x01) in
commit f7d8e387d9ae ("HID: uclogic: Switch to Digitizer usage for
styluses"). However, a suffix was not selected for the new usage.

Handle the digitalizer application usage in uclogic_input_configured()
and add the required suffix.

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-uclogic-core.c

index c0fe66e50c58d912aabe10d6a462276a19b9656c..cf3315a408c8c4e80bb7d666b223264623403022 100644 (file)
@@ -153,6 +153,7 @@ static int uclogic_input_configured(struct hid_device *hdev,
                        suffix = "Pad";
                        break;
                case HID_DG_PEN:
+               case HID_DG_DIGITIZER:
                        suffix = "Pen";
                        break;
                case HID_CP_CONSUMER_CONTROL: