diff options
author | José Expósito <jose.exposito89@gmail.com> | 2022-12-26 15:54:51 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2023-01-18 11:44:57 +0300 |
commit | bd85c131b2e3edf2cf1a498652e8c3a066a338e7 (patch) | |
tree | 736f920a5f1d68f17336a9144ff9ff2d0b203895 /drivers/hid/hid-uclogic-rdesc.h | |
parent | f60c377f52de37f8705c5fc6d57737fdaf309ff9 (diff) | |
download | linux-bd85c131b2e3edf2cf1a498652e8c3a066a338e7.tar.xz |
HID: uclogic: Refactor UGEEv2 probe magic data
A fututure patch will need to use the array of magic data that the
UGEEv2 devices expect on probe and the endpoint number. Move them to a
common place.
Refactor, no functional changes.
Tested-by: Mia Kanashi <chad@redpilled.dev>
Tested-by: Andreas Grosse <andig.mail@t-online.de>
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-uclogic-rdesc.h')
-rw-r--r-- | drivers/hid/hid-uclogic-rdesc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/hid/hid-uclogic-rdesc.h b/drivers/hid/hid-uclogic-rdesc.h index a1f78c07293f..906d068f50a9 100644 --- a/drivers/hid/hid-uclogic-rdesc.h +++ b/drivers/hid/hid-uclogic-rdesc.h @@ -164,6 +164,11 @@ extern const size_t uclogic_rdesc_v2_frame_dial_size; /* Report ID for tweaked UGEE v2 battery reports */ #define UCLOGIC_RDESC_UGEE_V2_BATTERY_ID 0xba +/* Magic data expected by UGEEv2 devices on probe */ +extern const __u8 uclogic_ugee_v2_probe_arr[]; +extern const size_t uclogic_ugee_v2_probe_size; +extern const int uclogic_ugee_v2_probe_endpoint; + /* Fixed report descriptor template for UGEE v2 pen reports */ extern const __u8 uclogic_rdesc_ugee_v2_pen_template_arr[]; extern const size_t uclogic_rdesc_ugee_v2_pen_template_size; |