Skip to content

Commit 3405a4b

Browse files
JoseExpositoJiri Kosina
authored andcommitted
HID: uclogic: Add HID_QUIRK_HIDINPUT_FORCE quirk
Commit f7d8e38 ("HID: uclogic: Switch to Digitizer usage for styluses") changed the usage used in UCLogic from "Pen" to "Digitizer". However, the IS_INPUT_APPLICATION() macro evaluates to false for HID_DG_DIGITIZER causing issues with the XP-Pen Star G640 tablet. Add the HID_QUIRK_HIDINPUT_FORCE quirk to bypass the IS_INPUT_APPLICATION() check. Reported-by: Torge Matthies <openglfreak@googlemail.com> Reported-by: Alexander Zhang <alex@alexyzhang.dev> Tested-by: Alexander Zhang <alex@alexyzhang.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 2afac81 commit 3405a4b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hid/hid-uclogic-core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ static int uclogic_probe(struct hid_device *hdev,
192192
* than the pen, so use QUIRK_MULTI_INPUT for all tablets.
193193
*/
194194
hdev->quirks |= HID_QUIRK_MULTI_INPUT;
195+
hdev->quirks |= HID_QUIRK_HIDINPUT_FORCE;
195196

196197
/* Allocate and assign driver data */
197198
drvdata = devm_kzalloc(&hdev->dev, sizeof(*drvdata), GFP_KERNEL);

0 commit comments

Comments
 (0)