Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbmid/usbmid.c

    ra92ce4ef r317a463  
    4545
    4646/** 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)
     47static int usb_iface_get_interface_impl(ddf_fun_t *fun, int *iface_no)
    4948{
    5049        assert(fun);
     
    6261/** DDF interface of the child - interface function. */
    6362static 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_impl
     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,
    6766};
    6867
     
    110109         * class name something humanly understandable.
    111110         */
    112         rc = asprintf(&child_name, "%s%d",
     111        rc = asprintf(&child_name, "%s%hhu",
    113112            usb_str_class(interface_descriptor->interface_class),
    114             (int) interface_descriptor->interface_number);
     113            interface_descriptor->interface_number);
    115114        if (rc < 0) {
    116115                return ENOMEM;
     
    123122                return ENOMEM;
    124123        }
    125 
    126         iface->fun = child;
    127 
    128         child->driver_data = iface;
    129         child->ops = &child_device_ops;
    130124
    131125        rc = usb_device_create_match_ids_from_interface(device_descriptor,
     
    143137        }
    144138
     139        iface->fun = child;
     140        child->driver_data = iface;
     141        child->ops = &child_device_ops;
     142
    145143        return EOK;
    146144}
Note: See TracChangeset for help on using the changeset viewer.