Skip to content

Commit a0f5276

Browse files
jigpubentiss
authored andcommitted
HID: Recognize "Digitizer" as a valid input application
"Digitizer" is a generic usage that may be used by various devices but which is particularly used by non-display pen tablets. This patch adds the usage to the list of values matched by the IS_INPUT_APPLICATION() macro that determines if an input device should be allocated or not. Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com> Reviewed-by: Ping Cheng <ping.cheng@wacom.com> Link: https://lore.kernel.org/r/20221019151832.44522-1-jason.gerecke@wacom.com Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
1 parent 740b2f0 commit a0f5276

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/linux/hid.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ extern bool hid_is_usb(const struct hid_device *hdev);
874874
/* We ignore a few input applications that are not widely used */
875875
#define IS_INPUT_APPLICATION(a) \
876876
(((a >= HID_UP_GENDESK) && (a <= HID_GD_MULTIAXIS)) \
877-
|| ((a >= HID_DG_PEN) && (a <= HID_DG_WHITEBOARD)) \
877+
|| ((a >= HID_DG_DIGITIZER) && (a <= HID_DG_WHITEBOARD)) \
878878
|| (a == HID_GD_SYSTEM_CONTROL) || (a == HID_CP_CONSUMER_CONTROL) \
879879
|| (a == HID_GD_WIRELESS_RADIO_CTLS))
880880

0 commit comments

Comments
 (0)