Skip to content

Commit 5591403

Browse files
spbnickJiri Kosina
authored andcommitted
HID: uclogic: Support Huion 13th frame button
Support reporting 13th frame button for Huion tablets. This supports reporting the button in the center of the dial for Huion HS610. 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>
1 parent 85e8607 commit 5591403

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/hid/hid-uclogic-rdesc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,8 @@ const size_t uclogic_rdesc_pen_v2_template_size =
689689
0xA0, /* Collection (Physical), */ \
690690
0x05, 0x09, /* Usage Page (Button), */ \
691691
0x19, 0x01, /* Usage Minimum (01h), */ \
692-
0x29, 0x02, /* Usage Maximum (02h), */ \
693-
0x95, 0x02, /* Report Count (2), */ \
692+
0x29, 0x03, /* Usage Maximum (03h), */ \
693+
0x95, 0x03, /* Report Count (3), */ \
694694
0x81, 0x02, /* Input (Variable), */ \
695695
0x95, _padding, /* Report Count (_padding), */ \
696696
0x81, 0x01, /* Input (Constant), */ \
@@ -699,14 +699,14 @@ const size_t uclogic_rdesc_pen_v2_template_size =
699699

700700
/* Fixed report descriptor for (tweaked) v1 buttonpad reports */
701701
const __u8 uclogic_rdesc_buttonpad_v1_arr[] = {
702-
UCLOGIC_RDESC_BUTTONPAD_BYTES(20)
702+
UCLOGIC_RDESC_BUTTONPAD_BYTES(19)
703703
};
704704
const size_t uclogic_rdesc_buttonpad_v1_size =
705705
sizeof(uclogic_rdesc_buttonpad_v1_arr);
706706

707707
/* Fixed report descriptor for (tweaked) v2 buttonpad reports */
708708
const __u8 uclogic_rdesc_buttonpad_v2_arr[] = {
709-
UCLOGIC_RDESC_BUTTONPAD_BYTES(52)
709+
UCLOGIC_RDESC_BUTTONPAD_BYTES(51)
710710
};
711711
const size_t uclogic_rdesc_buttonpad_v2_size =
712712
sizeof(uclogic_rdesc_buttonpad_v2_arr);

0 commit comments

Comments
 (0)