Changeset 4793023 in mainline


Ignore:
Timestamp:
2018-01-09T18:31:35Z (6 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
708d8fcd
Parents:
970f6e1
Message:

usbhid: mark polling end for keyboard and multimedia device

Location:
uspace/drv/hid/usbhid
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/hid/usbhid/kbd/kbddev.c

    r970f6e1 r4793023  
    328328 * An event is created only when key is pressed or released. Besides handling
    329329 * the events (usb_kbd_push_ev()), the auto-repeat fibril is notified about
    330  * key presses and releases (see usb_kbd_repeat_start() and 
     330 * key presses and releases (see usb_kbd_repeat_start() and
    331331 * usb_kbd_repeat_stop()).
    332332 *
    333333 * @param kbd_dev Keyboard device structure.
    334  * @param key_codes Parsed keyboard report - codes of currently pressed keys 
     334 * @param key_codes Parsed keyboard report - codes of currently pressed keys
    335335 *                  according to HID Usage Tables.
    336336 * @param count Number of key codes in report (size of the report).
     
    709709        usb_kbd_process_data(hid_dev, kbd_dev);
    710710
    711         return true;
     711        /* Continue polling until the device is about to be removed. */
     712        return !hid_dev->will_deinit;
    712713}
    713714
  • uspace/drv/hid/usbhid/multimedia/multimedia.c

    r970f6e1 r4793023  
    246246        usb_hid_report_path_t *path = usb_hid_report_path();
    247247        if (path == NULL)
    248                 return true; /* This might be a temporary failure. */
     248                return !hid_dev->will_deinit; /* This might be a temporary failure. */
    249249
    250250        int ret =
     
    252252        if (ret != EOK) {
    253253                usb_hid_report_path_free(path);
    254                 return true; /* This might be a temporary failure. */
     254                return !hid_dev->will_deinit; /* This might be a temporary failure. */
    255255        }
    256256
     
    284284        usb_hid_report_path_free(path);
    285285
    286         return true;
     286        return !hid_dev->will_deinit;
    287287}
    288288/**
Note: See TracChangeset for help on using the changeset viewer.