]> git.baikalelectronics.ru Git - kernel.git/commit
HID: uclogic: Add HID_QUIRK_HIDINPUT_FORCE quirk
authorJosé Expósito <jose.exposito89@gmail.com>
Thu, 10 Nov 2022 17:40:56 +0000 (18:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:40:48 +0000 (11:40 +0100)
commitef86e7182ee308ff19d68db3b2abe6a3ccec049a
treed2bdb6ba4fbe5e0413590a48c80e4ec45306d73c
parent4bdebf2ea3433f96f40b079bfb44d99e601ed880
HID: uclogic: Add HID_QUIRK_HIDINPUT_FORCE quirk

[ Upstream commit 88722b0e7a9a2073fc8069252c78ac9041242ca1 ]

Commit 9ab9bfdc1ca9 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-uclogic-core.c