Changeset c54b898 in mainline for uspace/drv/hid/usbhid/main.c


Ignore:
Timestamp:
2018-01-05T16:30:46Z (6 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b60944b
Parents:
11d4c747
git-author:
Petr Manek <petr.manek@…> (2018-01-05 16:21:03)
git-committer:
Petr Manek <petr.manek@…> (2018-01-05 16:30:46)
Message:

usbdev: refactoring

The device_rem driver callback was renamed to device_remove. Also,
a new device_removed callback was introduced. This callback will fire
after all device pipes (endpoints, internally) are unregistered from
the HC device after a call to device_remove. It is semantically
a better opportunity for the USB device driver to free resources and
join all fibrils, since endpoint unregistration will force abort all
active transfers, waking up their issuers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/hid/usbhid/main.c

    r11d4c747 rc54b898  
    122122 * @return Error code.
    123123 */
    124 static int usb_hid_device_rem(usb_device_t *dev)
     124static int usb_hid_device_remove(usb_device_t *dev)
    125125{
    126126        assert(dev);
     
    164164static const usb_driver_ops_t usb_hid_driver_ops = {
    165165        .device_add = usb_hid_device_add,
    166         .device_rem = usb_hid_device_rem,
     166        .device_remove = usb_hid_device_remove,
    167167        .device_gone = usb_hid_device_gone,
    168168};
Note: See TracChangeset for help on using the changeset viewer.