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