Changeset 72af8da in mainline for uspace/drv/usbmid/usbmid.c
- Timestamp:
- 2011-03-16T18:50:17Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 42a3a57
- Parents:
- 3e7b7cd (diff), fcf07e6 (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/drv/usbmid/usbmid.c
r3e7b7cd r72af8da 67 67 } 68 68 69 /** DDF interface of the child - interface function. */ 69 70 static usb_iface_t child_usb_iface = { 70 71 .get_hc_handle = usb_iface_get_hc_handle_hub_child_impl, … … 73 74 }; 74 75 75 76 /** Operations for children - interface functions. */ 76 77 static ddf_dev_ops_t child_device_ops = { 77 78 .interfaces[USB_DEV_IFACE] = &child_usb_iface 78 79 }; 79 80 81 /** Operations of the device itself. */ 80 82 static ddf_dev_ops_t mid_device_ops = { 81 83 .interfaces[USB_DEV_IFACE] = &usb_iface_hub_impl … … 114 116 return NULL; 115 117 } 118 rc = usb_endpoint_pipe_probe_default_control(&mid->ctrl_pipe); 119 if (rc != EOK) { 120 usb_log_error("Probing default control pipe failed: %s.\n", 121 str_error(rc)); 122 free(mid); 123 return NULL; 124 } 116 125 117 126 mid->dev = dev; … … 123 132 /** Create new interface for USB MID device. 124 133 * 125 * @param dev Backing generic DDF child device(representing interface).134 * @param fun Backing generic DDF device function (representing interface). 126 135 * @param iface_no Interface number. 127 136 * @return New interface.
Note:
See TracChangeset
for help on using the changeset viewer.