Changeset 6843a9c in mainline for uspace/drv/bus/usb/usbmid/usbmid.c
- Timestamp:
- 2012-06-29T13:02:14Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 722912e
- Parents:
- ba72f2b (diff), 0bbd13e (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/bus/usb/usbmid/usbmid.c
rba72f2b r6843a9c 45 45 46 46 /** Callback for DDF USB interface. */ 47 static int usb_iface_get_interface_impl(ddf_fun_t *fun, devman_handle_t handle, 48 int *iface_no) 47 static int usb_iface_get_interface_impl(ddf_fun_t *fun, int *iface_no) 49 48 { 50 49 assert(fun); … … 62 61 /** DDF interface of the child - interface function. */ 63 62 static usb_iface_t child_usb_iface = { 64 .get_hc_handle = usb_iface_get_hc_handle_ hub_child_impl,65 .get_ address = usb_iface_get_address_hub_impl,66 .get_ interface = usb_iface_get_interface_impl63 .get_hc_handle = usb_iface_get_hc_handle_device_impl, 64 .get_my_address = usb_iface_get_my_address_forward_impl, 65 .get_my_interface = usb_iface_get_interface_impl, 67 66 }; 68 67 … … 110 109 * class name something humanly understandable. 111 110 */ 112 rc = asprintf(&child_name, "%s% d",111 rc = asprintf(&child_name, "%s%hhu", 113 112 usb_str_class(interface_descriptor->interface_class), 114 (int)interface_descriptor->interface_number);113 interface_descriptor->interface_number); 115 114 if (rc < 0) { 116 115 return ENOMEM; … … 123 122 return ENOMEM; 124 123 } 125 126 iface->fun = child;127 128 child->driver_data = iface;129 child->ops = &child_device_ops;130 124 131 125 rc = usb_device_create_match_ids_from_interface(device_descriptor, … … 143 137 } 144 138 139 iface->fun = child; 140 child->driver_data = iface; 141 child->ops = &child_device_ops; 142 145 143 return EOK; 146 144 }
Note:
See TracChangeset
for help on using the changeset viewer.