OSDN Git Service

HID: uclogic: Switch to Digitizer usage for styluses
authorNikolai Kondrashov <spbnick@gmail.com>
Sun, 8 May 2022 16:01:46 +0000 (18:01 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 11 May 2022 12:19:27 +0000 (14:19 +0200)
commitf7d8e387d9aeff963e6691c0166269b8042b4ff9
tree635cd5a22930ed3b9b6a28c4a2d43fbc655f3983
parent61b1db5a14b7651e808176c17d629114763c3641
HID: uclogic: Switch to Digitizer usage for styluses

The (incorrect) "Pen" (0x02) application usage used in replacement
report descriptors throughout the drivers leads to all tablets
recognized as a "direct" input device (i.e. a tablet monitor) by
recent kernels, which messes up desktop environments [1].

Replace the application usage with "Digitizer" (0x01) for each
non-display graphics tablet.

[1] https://lore.kernel.org/linux-input/f39ce5d5-bd5b-bd3f-3ea2-9b2a89ba1eb1@gmail.com/

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>
drivers/hid/hid-kye.c
drivers/hid/hid-uclogic-rdesc.c
drivers/hid/hid-viewsonic.c