Changes in uspace/drv/bus/usb/usbmid/usbmid.c [5153b58:a92ce4ef] in mainline
- File:
-
- 1 edited
-
uspace/drv/bus/usb/usbmid/usbmid.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbmid/usbmid.c
r5153b58 ra92ce4ef 62 62 /** DDF interface of the child - interface function. */ 63 63 static usb_iface_t child_usb_iface = { 64 .get_hc_handle = usb_iface_get_hc_handle_ device_impl,65 .get_ my_address = usb_iface_get_my_address_forward_impl,66 .get_interface = usb_iface_get_interface_impl ,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_impl 67 67 }; 68 68 … … 110 110 * class name something humanly understandable. 111 111 */ 112 rc = asprintf(&child_name, "%s% hhu",112 rc = asprintf(&child_name, "%s%d", 113 113 usb_str_class(interface_descriptor->interface_class), 114 interface_descriptor->interface_number);114 (int) interface_descriptor->interface_number); 115 115 if (rc < 0) { 116 116 return ENOMEM; … … 123 123 return ENOMEM; 124 124 } 125 126 iface->fun = child; 127 128 child->driver_data = iface; 129 child->ops = &child_device_ops; 125 130 126 131 rc = usb_device_create_match_ids_from_interface(device_descriptor, … … 138 143 } 139 144 140 iface->fun = child;141 child->driver_data = iface;142 child->ops = &child_device_ops;143 144 145 return EOK; 145 146 }
Note:
See TracChangeset
for help on using the changeset viewer.
