Changes in uspace/drv/bus/usb/usbhid/main.c [9d58539:56fd7cf] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhid/main.c
r9d58539 r56fd7cf 103 103 if (rc != EOK) { 104 104 usb_log_error("Failed to start polling fibril for `%s'.\n", 105 d ev->ddf_dev->name);105 ddf_dev_get_name(dev->ddf_dev)); 106 106 usb_hid_deinit(hid_dev); 107 107 return rc; … … 109 109 hid_dev->running = true; 110 110 111 usb_log_info("HID device `%s' ready to use.\n", dev->ddf_dev->name); 111 usb_log_info("HID device `%s' ready to use.\n", 112 ddf_dev_get_name(dev->ddf_dev)); 112 113 113 114 return EOK; 114 115 } 115 /*----------------------------------------------------------------------------*/ 116 116 117 /** 117 118 * Callback for a device about to be removed from the driver. … … 126 127 return ENOTSUP; 127 128 } 128 /*----------------------------------------------------------------------------*/ 129 129 130 /** 130 131 * Callback for removing a device from the driver. … … 149 150 150 151 usb_hid_deinit(hid_dev); 151 usb_log_debug2("%s destruction complete.\n", d ev->ddf_dev->name);152 usb_log_debug2("%s destruction complete.\n", ddf_dev_get_name(dev->ddf_dev)); 152 153 return EOK; 153 154 } 154 /*----------------------------------------------------------------------------*/ 155 155 156 /** USB generic driver callbacks */ 156 157 static const usb_driver_ops_t usb_hid_driver_ops = { … … 159 160 .device_gone = usb_hid_device_gone, 160 161 }; 161 /*----------------------------------------------------------------------------*/ 162 162 163 /** The driver itself. */ 163 164 static const usb_driver_t usb_hid_driver = { … … 166 167 .endpoints = usb_hid_endpoints 167 168 }; 168 /*----------------------------------------------------------------------------*/ 169 169 170 int main(int argc, char *argv[]) 170 171 {
Note:
See TracChangeset
for help on using the changeset viewer.