Changeset b4b534ac in mainline for uspace/lib/usbhid/src/hidreport.c
- Timestamp:
- 2016-07-22T08:24:47Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f76d2c2
- Parents:
- 5b18137 (diff), 8351f9a4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhid/src/hidreport.c
r5b18137 rb4b534ac 61 61 62 62 usb_dp_parser_data_t parser_data = { 63 .data = dev->descriptors.configuration,64 .size = dev->descriptors.configuration_size,63 .data = usb_device_descriptors(dev)->full_config, 64 .size = usb_device_descriptors(dev)->full_config_size, 65 65 .arg = NULL 66 66 }; … … 71 71 const uint8_t *d = 72 72 usb_dp_get_nested_descriptor(&parser, &parser_data, 73 dev->descriptors.configuration);73 usb_device_descriptors(dev)->full_config); 74 74 75 75 /* … … 77 77 */ 78 78 int i = 0; 79 while (d != NULL && i < dev->interface_no) {79 while (d != NULL && i < usb_device_get_iface_number(dev)) { 80 80 d = usb_dp_get_sibling_descriptor(&parser, &parser_data, 81 dev->descriptors.configuration, d);81 usb_device_descriptors(dev)->full_config, d); 82 82 ++i; 83 83 } … … 85 85 if (d == NULL) { 86 86 usb_log_error("The %d. interface descriptor not found!\n", 87 dev->interface_no);87 usb_device_get_iface_number(dev)); 88 88 return ENOENT; 89 89 } … … 135 135 * Get the descriptor from the device. 136 136 */ 137 int rc = usb_request_get_descriptor( &dev->ctrl_pipe,137 int rc = usb_request_get_descriptor(usb_device_get_default_pipe(dev), 138 138 USB_REQUEST_TYPE_STANDARD, USB_REQUEST_RECIPIENT_INTERFACE, 139 USB_DESCTYPE_HID_REPORT, 0, dev->interface_no,139 USB_DESCTYPE_HID_REPORT, 0, usb_device_get_iface_number(dev), 140 140 *report_desc, length, &actual_size); 141 141
Note:
See TracChangeset
for help on using the changeset viewer.