Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhid/main.c

    r56fd7cf r9d58539  
    103103        if (rc != EOK) {
    104104                usb_log_error("Failed to start polling fibril for `%s'.\n",
    105                     ddf_dev_get_name(dev->ddf_dev));
     105                    dev->ddf_dev->name);
    106106                usb_hid_deinit(hid_dev);
    107107                return rc;
     
    109109        hid_dev->running = true;
    110110
    111         usb_log_info("HID device `%s' ready to use.\n",
    112             ddf_dev_get_name(dev->ddf_dev));
     111        usb_log_info("HID device `%s' ready to use.\n", dev->ddf_dev->name);
    113112
    114113        return EOK;
    115114}
    116 
     115/*----------------------------------------------------------------------------*/
    117116/**
    118117 * Callback for a device about to be removed from the driver.
     
    127126        return ENOTSUP;
    128127}
    129 
     128/*----------------------------------------------------------------------------*/
    130129/**
    131130 * Callback for removing a device from the driver.
     
    150149
    151150        usb_hid_deinit(hid_dev);
    152         usb_log_debug2("%s destruction complete.\n", ddf_dev_get_name(dev->ddf_dev));
     151        usb_log_debug2("%s destruction complete.\n", dev->ddf_dev->name);
    153152        return EOK;
    154153}
    155 
     154/*----------------------------------------------------------------------------*/
    156155/** USB generic driver callbacks */
    157156static const usb_driver_ops_t usb_hid_driver_ops = {
     
    160159        .device_gone = usb_hid_device_gone,
    161160};
    162 
     161/*----------------------------------------------------------------------------*/
    163162/** The driver itself. */
    164163static const usb_driver_t usb_hid_driver = {
     
    167166        .endpoints = usb_hid_endpoints
    168167};
    169 
     168/*----------------------------------------------------------------------------*/
    170169int main(int argc, char *argv[])
    171170{
Note: See TracChangeset for help on using the changeset viewer.