Skip to content

Commit e518f36

Browse files
author
Benjamin Tissoires
committed
Merge branch 'for-6.11/uclogic' into for-linus
Couple of hid-uclogic fixes by José Expósito: - Support HUION devices with up to 20 buttons - Use Rx and Ry for touch strips
2 parents 2fe9022 + 06483d2 commit e518f36

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

drivers/hid/hid-uclogic-rdesc.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -690,10 +690,10 @@ const size_t uclogic_rdesc_v2_pen_template_size =
690690
0xA0, /* Collection (Physical), */ \
691691
0x05, 0x09, /* Usage Page (Button), */ \
692692
0x19, 0x01, /* Usage Minimum (01h), */ \
693-
0x29, 0x03, /* Usage Maximum (03h), */ \
694-
0x95, 0x03, /* Report Count (3), */ \
693+
0x29, 0x0A, /* Usage Maximum (0Ah), */ \
694+
0x95, 0x0A, /* Report Count (10), */ \
695695
0x81, 0x02, /* Input (Variable), */ \
696-
0x95, ((_size) * 8 - 45), \
696+
0x95, ((_size) * 8 - 52), \
697697
/* Report Count (padding), */ \
698698
0x81, 0x01, /* Input (Constant), */ \
699699
0xC0, /* End Collection, */ \
@@ -790,7 +790,8 @@ const __u8 uclogic_rdesc_v2_frame_touch_strip_arr[] = {
790790
0x95, 0x01, /* Report Count (1), */
791791
0x81, 0x02, /* Input (Variable), */
792792
0x05, 0x01, /* Usage Page (Desktop), */
793-
0x09, 0x38, /* Usage (Wheel), */
793+
0x09, 0x33, /* Usage (Rx), */
794+
0x09, 0x34, /* Usage (Ry), */
794795
0x95, 0x01, /* Report Count (1), */
795796
0x15, 0x00, /* Logical Minimum (0), */
796797
0x25, 0x07, /* Logical Maximum (7), */

0 commit comments

Comments
 (0)