Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/hid/usbhid/mouse/mousedev.c

    r53b9f2c rb7fd2a0  
    204204                return true;
    205205        }
    206         int ret =
     206        errno_t ret =
    207207           usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_BUTTON, 0);
    208208        if (ret != EOK) {
     
    296296}
    297297
    298 static int mouse_dev_init(usb_mouse_t *mouse_dev, usb_hid_dev_t *hid_dev)
     298static errno_t mouse_dev_init(usb_mouse_t *mouse_dev, usb_hid_dev_t *hid_dev)
    299299{
    300300        // FIXME: This may not be optimal since stupid hardware vendor may
     
    320320}
    321321
    322 int usb_mouse_init(usb_hid_dev_t *hid_dev, void **data)
     322errno_t usb_mouse_init(usb_hid_dev_t *hid_dev, void **data)
    323323{
    324324        usb_log_debug("Initializing HID/Mouse structure...\n");
     
    347347        }
    348348
    349         int ret = mouse_dev_init(mouse_dev, hid_dev);
     349        errno_t ret = mouse_dev_init(mouse_dev, hid_dev);
    350350        if (ret != EOK) {
    351351                usb_log_error("Failed to init HID mouse device structure.\n");
     
    403403        /* Hangup session to the console */
    404404        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);
    406406                if (ret != EOK)
    407407                        usb_log_warning("Failed to hang up mouse session: "
     
    413413}
    414414
    415 int usb_mouse_set_boot_protocol(usb_hid_dev_t *hid_dev)
    416 {
    417         int rc = usb_hid_parse_report_descriptor(
     415errno_t usb_mouse_set_boot_protocol(usb_hid_dev_t *hid_dev)
     416{
     417        errno_t rc = usb_hid_parse_report_descriptor(
    418418            &hid_dev->report, USB_MOUSE_BOOT_REPORT_DESCRIPTOR,
    419419            sizeof(USB_MOUSE_BOOT_REPORT_DESCRIPTOR));
Note: See TracChangeset for help on using the changeset viewer.