Changeset 8f74140c in mainline for uspace/drv/usbmid/explore.c
- Timestamp:
- 2011-03-03T12:52:17Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9445aad, 9a422574, d3594362
- Parents:
- 2c22f1f7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbmid/explore.c
r2c22f1f7 r8f74140c 159 159 } 160 160 161 /* Select the first configuration */ 162 rc = usb_request_set_configuration(&dev->ctrl_pipe, 163 config_descriptor->configuration_number); 164 if (rc != EOK) { 165 usb_log_error("Failed to set device configuration: %s.\n", 166 str_error(rc)); 167 free(config_descriptor_raw); 168 free(interface_descriptors); 169 return false; 170 } 171 172 173 /* Create control function */ 161 174 ddf_fun_t *ctl_fun = ddf_fun_create(dev->dev, fun_exposed, "ctl"); 162 175 if (ctl_fun == NULL) { … … 175 188 } 176 189 190 /* Spawn interface children */ 177 191 size_t i; 178 192 for (i = 0; i < interface_descriptors_count; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.