@@ -1007,6 +1007,7 @@ static int uclogic_params_huion_init(struct uclogic_params *params,
1007
1007
* @params: Parameters to fill in (to be cleaned with
1008
1008
* uclogic_params_cleanup()). Not modified in case of error.
1009
1009
* Cannot be NULL.
1010
+ * @interface: The device interface the control packet is sent to.
1010
1011
* @init_packet: Magic packet to send on usb to activate device.
1011
1012
* @packet_size: Size of the init packet.
1012
1013
* @rdesc_pen_arr: Pen report descriptor array.
@@ -1018,7 +1019,7 @@ static int uclogic_params_huion_init(struct uclogic_params *params,
1018
1019
* Zero, if successful. A negative errno code on error.
1019
1020
*/
1020
1021
static int uclogic_params_init_ugee_xppen_pro (struct hid_device * hdev ,
1021
- struct uclogic_params * p ,
1022
+ struct uclogic_params * p , const uint8_t interface ,
1022
1023
const u8 init_packet [], const size_t packet_size ,
1023
1024
const u8 rdesc_pen_arr [], const size_t rdesc_pen_size ,
1024
1025
const u8 rdesc_frame_arr [], const size_t rdesc_frame_size )
@@ -1035,7 +1036,7 @@ static int uclogic_params_init_ugee_xppen_pro(struct hid_device *hdev,
1035
1036
1036
1037
rc = usb_interrupt_msg (
1037
1038
udev ,
1038
- usb_sndintpipe (udev , 0x03 ),
1039
+ usb_sndintpipe (udev , interface ),
1039
1040
buf ,
1040
1041
packet_size ,
1041
1042
& actual_len ,
@@ -1435,7 +1436,7 @@ int uclogic_params_init(struct uclogic_params *params,
1435
1436
break ;
1436
1437
}
1437
1438
1438
- rc = uclogic_params_init_ugee_xppen_pro (hdev , & p , init_packet , packet_size ,
1439
+ rc = uclogic_params_init_ugee_xppen_pro (hdev , & p , 0x03 , init_packet , packet_size ,
1439
1440
uclogic_rdesc_xppen_a156p_pen_arr ,
1440
1441
uclogic_rdesc_xppen_a156p_pen_size ,
1441
1442
uclogic_rdesc_xppen_a156p_frame_arr ,
0 commit comments