Changeset 5a6cc679 in mainline for uspace/drv/hid/usbhid/mouse/mousedev.c
- Timestamp:
- 2018-01-31T02:21:24Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a0a9cc2
- Parents:
- 132ab5d1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/usbhid/mouse/mousedev.c
r132ab5d1 r5a6cc679 228 228 return; 229 229 } 230 int ret =230 errno_t ret = 231 231 usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_BUTTON, 0); 232 232 if (ret != EOK) { … … 318 318 } 319 319 320 static int mouse_dev_init(usb_mouse_t *mouse_dev, usb_hid_dev_t *hid_dev)320 static errno_t mouse_dev_init(usb_mouse_t *mouse_dev, usb_hid_dev_t *hid_dev) 321 321 { 322 322 // FIXME: This may not be optimal since stupid hardware vendor may … … 342 342 } 343 343 344 int usb_mouse_init(usb_hid_dev_t *hid_dev, void **data)344 errno_t usb_mouse_init(usb_hid_dev_t *hid_dev, void **data) 345 345 { 346 346 usb_log_debug("Initializing HID/Mouse structure..."); … … 369 369 } 370 370 371 int ret = mouse_dev_init(mouse_dev, hid_dev);371 errno_t ret = mouse_dev_init(mouse_dev, hid_dev); 372 372 if (ret != EOK) { 373 373 usb_log_error("Failed to init HID mouse device structure."); … … 427 427 /* Hangup session to the console */ 428 428 if (mouse_dev->mouse_sess != NULL) { 429 const int ret = async_hangup(mouse_dev->mouse_sess);429 const errno_t ret = async_hangup(mouse_dev->mouse_sess); 430 430 if (ret != EOK) 431 431 usb_log_warning("Failed to hang up mouse session: " … … 437 437 } 438 438 439 int usb_mouse_set_boot_protocol(usb_hid_dev_t *hid_dev)440 { 441 int rc = usb_hid_parse_report_descriptor(439 errno_t usb_mouse_set_boot_protocol(usb_hid_dev_t *hid_dev) 440 { 441 errno_t rc = usb_hid_parse_report_descriptor( 442 442 &hid_dev->report, USB_MOUSE_BOOT_REPORT_DESCRIPTOR, 443 443 sizeof(USB_MOUSE_BOOT_REPORT_DESCRIPTOR));
Note:
See TracChangeset
for help on using the changeset viewer.