Ignore:
Timestamp:
2018-01-31T02:21:24Z (6 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a0a9cc2
Parents:
132ab5d1
Message:

Merge commit '50f19b7ee8e94570b5c63896736c4eb49cfa18db' into forwardport

Not all ints are converted to errno_t in xhci tree yet, however it compiles and works :)

File:
1 edited

Legend:

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

    r132ab5d1 r5a6cc679  
    228228                return;
    229229        }
    230         int ret =
     230        errno_t ret =
    231231           usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_BUTTON, 0);
    232232        if (ret != EOK) {
     
    318318}
    319319
    320 static int mouse_dev_init(usb_mouse_t *mouse_dev, usb_hid_dev_t *hid_dev)
     320static errno_t mouse_dev_init(usb_mouse_t *mouse_dev, usb_hid_dev_t *hid_dev)
    321321{
    322322        // FIXME: This may not be optimal since stupid hardware vendor may
     
    342342}
    343343
    344 int usb_mouse_init(usb_hid_dev_t *hid_dev, void **data)
     344errno_t usb_mouse_init(usb_hid_dev_t *hid_dev, void **data)
    345345{
    346346        usb_log_debug("Initializing HID/Mouse structure...");
     
    369369        }
    370370
    371         int ret = mouse_dev_init(mouse_dev, hid_dev);
     371        errno_t ret = mouse_dev_init(mouse_dev, hid_dev);
    372372        if (ret != EOK) {
    373373                usb_log_error("Failed to init HID mouse device structure.");
     
    427427        /* Hangup session to the console */
    428428        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);
    430430                if (ret != EOK)
    431431                        usb_log_warning("Failed to hang up mouse session: "
     
    437437}
    438438
    439 int usb_mouse_set_boot_protocol(usb_hid_dev_t *hid_dev)
    440 {
    441         int rc = usb_hid_parse_report_descriptor(
     439errno_t usb_mouse_set_boot_protocol(usb_hid_dev_t *hid_dev)
     440{
     441        errno_t rc = usb_hid_parse_report_descriptor(
    442442            &hid_dev->report, USB_MOUSE_BOOT_REPORT_DESCRIPTOR,
    443443            sizeof(USB_MOUSE_BOOT_REPORT_DESCRIPTOR));
Note: See TracChangeset for help on using the changeset viewer.