Changes in uspace/drv/hid/usbhid/kbd/kbddev.c [b7fd2a0:53b9f2c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/usbhid/kbd/kbddev.c
rb7fd2a0 r53b9f2c 257 257 258 258 // TODO: what about the Report ID? 259 errno_t rc = usb_hid_report_output_translate(&hid_dev->report, 0,259 int rc = usb_hid_report_output_translate(&hid_dev->report, 0, 260 260 kbd_dev->output_buffer, kbd_dev->output_size); 261 261 … … 435 435 } 436 436 437 errno_t ret =437 int ret = 438 438 usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_KEYBOARD, 0); 439 439 if (ret != EOK) { … … 480 480 /* HID/KBD structure manipulation */ 481 481 482 static errno_t kbd_dev_init(usb_kbd_t *kbd_dev, usb_hid_dev_t *hid_dev)482 static int kbd_dev_init(usb_kbd_t *kbd_dev, usb_hid_dev_t *hid_dev) 483 483 { 484 484 assert(kbd_dev); … … 507 507 } 508 508 509 errno_t ret =509 int ret = 510 510 usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_KEYBOARD, 0); 511 511 if (ret != EOK) { … … 616 616 * @return Other value inherited from function usbhid_dev_init(). 617 617 */ 618 errno_t usb_kbd_init(usb_hid_dev_t *hid_dev, void **data)618 int usb_kbd_init(usb_hid_dev_t *hid_dev, void **data) 619 619 { 620 620 usb_log_debug("Initializing HID/KBD structure...\n"); … … 642 642 } 643 643 644 errno_t ret = kbd_dev_init(kbd_dev, hid_dev);644 int ret = kbd_dev_init(kbd_dev, hid_dev); 645 645 if (ret != EOK) { 646 646 usb_log_error("Failed to initialize KBD device structure.\n"); … … 775 775 } 776 776 777 errno_t usb_kbd_set_boot_protocol(usb_hid_dev_t *hid_dev)777 int usb_kbd_set_boot_protocol(usb_hid_dev_t *hid_dev) 778 778 { 779 779 assert(hid_dev); 780 errno_t rc = usb_hid_parse_report_descriptor(780 int rc = usb_hid_parse_report_descriptor( 781 781 &hid_dev->report, USB_KBD_BOOT_REPORT_DESCRIPTOR, 782 782 sizeof(USB_KBD_BOOT_REPORT_DESCRIPTOR));
Note:
See TracChangeset
for help on using the changeset viewer.