Changes in uspace/drv/bus/usb/usbmid/usbmid.c [9d58539:a92ce4ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbmid/usbmid.c
r9d58539 ra92ce4ef 45 45 46 46 /** Callback for DDF USB interface. */ 47 static int usb_iface_get_interface_impl(ddf_fun_t *fun, int *iface_no) 47 static int usb_iface_get_interface_impl(ddf_fun_t *fun, devman_handle_t handle, 48 int *iface_no) 48 49 { 49 50 assert(fun); … … 61 62 /** DDF interface of the child - interface function. */ 62 63 static usb_iface_t child_usb_iface = { 63 .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,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 66 67 }; 67 68 … … 109 110 * class name something humanly understandable. 110 111 */ 111 rc = asprintf(&child_name, "%s% hhu",112 rc = asprintf(&child_name, "%s%d", 112 113 usb_str_class(interface_descriptor->interface_class), 113 interface_descriptor->interface_number);114 (int) interface_descriptor->interface_number); 114 115 if (rc < 0) { 115 116 return ENOMEM; … … 122 123 return ENOMEM; 123 124 } 125 126 iface->fun = child; 127 128 child->driver_data = iface; 129 child->ops = &child_device_ops; 124 130 125 131 rc = usb_device_create_match_ids_from_interface(device_descriptor, … … 137 143 } 138 144 139 iface->fun = child;140 child->driver_data = iface;141 child->ops = &child_device_ops;142 143 145 return EOK; 144 146 }
Note:
See TracChangeset
for help on using the changeset viewer.