Changes in uspace/drv/hid/usbhid/mouse/mousedev.c [53b9f2c:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/usbhid/mouse/mousedev.c
r53b9f2c rb7fd2a0 204 204 return true; 205 205 } 206 int ret =206 errno_t ret = 207 207 usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_BUTTON, 0); 208 208 if (ret != EOK) { … … 296 296 } 297 297 298 static int mouse_dev_init(usb_mouse_t *mouse_dev, usb_hid_dev_t *hid_dev)298 static errno_t mouse_dev_init(usb_mouse_t *mouse_dev, usb_hid_dev_t *hid_dev) 299 299 { 300 300 // FIXME: This may not be optimal since stupid hardware vendor may … … 320 320 } 321 321 322 int usb_mouse_init(usb_hid_dev_t *hid_dev, void **data)322 errno_t usb_mouse_init(usb_hid_dev_t *hid_dev, void **data) 323 323 { 324 324 usb_log_debug("Initializing HID/Mouse structure...\n"); … … 347 347 } 348 348 349 int ret = mouse_dev_init(mouse_dev, hid_dev);349 errno_t ret = mouse_dev_init(mouse_dev, hid_dev); 350 350 if (ret != EOK) { 351 351 usb_log_error("Failed to init HID mouse device structure.\n"); … … 403 403 /* Hangup session to the console */ 404 404 if (mouse_dev->mouse_sess != NULL) { 405 const int ret = async_hangup(mouse_dev->mouse_sess);405 const errno_t ret = async_hangup(mouse_dev->mouse_sess); 406 406 if (ret != EOK) 407 407 usb_log_warning("Failed to hang up mouse session: " … … 413 413 } 414 414 415 int usb_mouse_set_boot_protocol(usb_hid_dev_t *hid_dev)416 { 417 int rc = usb_hid_parse_report_descriptor(415 errno_t usb_mouse_set_boot_protocol(usb_hid_dev_t *hid_dev) 416 { 417 errno_t rc = usb_hid_parse_report_descriptor( 418 418 &hid_dev->report, USB_MOUSE_BOOT_REPORT_DESCRIPTOR, 419 419 sizeof(USB_MOUSE_BOOT_REPORT_DESCRIPTOR));
Note:
See TracChangeset
for help on using the changeset viewer.