Changes in uspace/lib/usbdev/src/devdrv.c [b803845:065064e6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/devdrv.c
rb803845 r065064e6 81 81 * @return Number of pipes (excluding default control pipe). 82 82 */ 83 static size_t count_other_pipes( constusb_endpoint_description_t **endpoints)83 static size_t count_other_pipes(usb_endpoint_description_t **endpoints) 84 84 { 85 85 size_t count = 0; … … 101 101 * @return Error code. 102 102 */ 103 static int initialize_other_pipes( constusb_endpoint_description_t **endpoints,103 static int initialize_other_pipes(usb_endpoint_description_t **endpoints, 104 104 usb_device_t *dev, int alternate_setting) 105 105 { … … 154 154 rc = driver->ops->device_add(dev); 155 155 if (rc != EOK) 156 usb_device_de init(dev);156 usb_device_destroy(dev); 157 157 return rc; 158 158 } … … 191 191 const int ret = driver->ops->device_gone(usb_dev); 192 192 if (ret == EOK) 193 usb_device_de init(usb_dev);193 usb_device_destroy(usb_dev); 194 194 195 195 return ret; … … 238 238 */ 239 239 int usb_device_select_interface(usb_device_t *dev, uint8_t alternate_setting, 240 constusb_endpoint_description_t **endpoints)240 usb_endpoint_description_t **endpoints) 241 241 { 242 242 if (dev->interface_no < 0) { … … 321 321 */ 322 322 int usb_device_create_pipes(const ddf_dev_t *dev, usb_device_connection_t *wire, 323 constusb_endpoint_description_t **endpoints,323 usb_endpoint_description_t **endpoints, 324 324 const uint8_t *config_descr, size_t config_descr_size, 325 325 int interface_no, int interface_setting, … … 526 526 */ 527 527 int usb_device_create(ddf_dev_t *ddf_dev, 528 constusb_endpoint_description_t **endpoints,528 usb_endpoint_description_t **endpoints, 529 529 usb_device_t **dev_ptr, const char **errstr_ptr) 530 530 { … … 590 590 /** Destroy instance of a USB device. 591 591 * 592 * @param dev Device to be de-initialized. 593 * 594 * Does not free/destroy supplied pointer. 595 */ 596 void usb_device_deinit(usb_device_t *dev) 592 * @param dev Device to be destroyed. 593 */ 594 void usb_device_destroy(usb_device_t *dev) 597 595 { 598 596 if (dev == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.