@@ -654,13 +654,14 @@ const size_t uclogic_rdesc_v2_pen_template_size =
654654/**
655655 * Expand to the contents of a generic frame report descriptor.
656656 *
657+ * @_id: The report ID to use.
657658 * @_size: Size of the report to pad to, including report ID, bytes.
658659 */
659- #define UCLOGIC_RDESC_FRAME_BYTES (_size ) \
660+ #define UCLOGIC_RDESC_FRAME_BYTES (_id , _size ) \
660661 0x05, 0x01, /* Usage Page (Desktop), */ \
661662 0x09 , 0x07 , /* Usage (Keypad), */ \
662663 0xA1 , 0x01 , /* Collection (Application), */ \
663- 0x85 , 0xF7 , /* Report ID (247 ), */ \
664+ 0x85 , ( _id ) , /* Report ID (_id ), */ \
664665 0x14 , /* Logical Minimum (0), */ \
665666 0x25 , 0x01 , /* Logical Maximum (1), */ \
666667 0x75 , 0x01 , /* Report Size (1), */ \
@@ -699,14 +700,14 @@ const size_t uclogic_rdesc_v2_pen_template_size =
699700
700701/* Fixed report descriptor for (tweaked) v1 frame reports */
701702const __u8 uclogic_rdesc_v1_frame_arr [] = {
702- UCLOGIC_RDESC_FRAME_BYTES (8 )
703+ UCLOGIC_RDESC_FRAME_BYTES (UCLOGIC_RDESC_V1_FRAME_ID , 8 )
703704};
704705const size_t uclogic_rdesc_v1_frame_size =
705706 sizeof (uclogic_rdesc_v1_frame_arr );
706707
707708/* Fixed report descriptor for (tweaked) v2 frame reports */
708709const __u8 uclogic_rdesc_v2_frame_arr [] = {
709- UCLOGIC_RDESC_FRAME_BYTES (12 )
710+ UCLOGIC_RDESC_FRAME_BYTES (UCLOGIC_RDESC_V2_FRAME_ID , 12 )
710711};
711712const size_t uclogic_rdesc_v2_frame_size =
712713 sizeof (uclogic_rdesc_v2_frame_arr );
0 commit comments