HID: uclogic: Add support for XP-PEN Deco L
authorJosé Expósito <jose.exposito89@gmail.com>
Sat, 11 Jun 2022 11:39:14 +0000 (13:39 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 15 Jun 2022 13:51:47 +0000 (15:51 +0200)
commit0cb1fc0988e32bda84c2b7218e0c761af1430baf
treed11951906203a261e0169c2862151870f90450fe
parent867c8925442579f7c4a8901f02a54fb07e99c2be
HID: uclogic: Add support for XP-PEN Deco L

The XP-PEN Deco L (UGEE) needs to be initialized by sending a buffer of
magic data, discovered by sniffing the Windows driver traffic.

In order to differentiate UGEE tablets that need this kind of
initialization from the previous ones, name them v2 internally and
create an entry point for them.

After initialization, the template report descriptors can be discovered
by parsing a string descriptor, similar to the one exposed by HUION v1
devices.

Add all the required elements to support the device.

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-ids.h
drivers/hid/hid-uclogic-core.c
drivers/hid/hid-uclogic-params.c
drivers/hid/hid-uclogic-rdesc.c
drivers/hid/hid-uclogic-rdesc.h