Changeset 91173333 in mainline for uspace/lib/usbdev


Ignore:
Timestamp:
2018-01-13T21:36:13Z (8 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
edc51615
Parents:
8a0c52a
Message:

usbdev: use centralized joining mechanism, move away from device_removed() callback

Location:
uspace/lib/usbdev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/include/usb/dev/driver.h

    r8a0c52a r91173333  
    4646        /** Callback when a device is about to be removed from the system. */
    4747        int (*device_remove)(usb_device_t *);
    48         /** Callback when a device has just been removed from the system (optional). */
    49         int (*device_removed)(usb_device_t *);
    5048        /** Callback when a device was removed from the system. */
    5149        int (*device_gone)(usb_device_t *);
  • uspace/lib/usbdev/src/driver.c

    r8a0c52a r91173333  
    9494                return ret;
    9595
    96         /* Notify the driver after endpoints were unregistered. */
    97         usb_device_destroy_pipes(usb_dev);
    98         if (driver->ops->device_removed != NULL) {
    99                 ret = driver->ops->device_removed(usb_dev);
    100                 if (ret != EOK)
    101                         return ret;
    102         }
    103 
    10496        usb_device_destroy_ddf(gen_dev);
    10597        return EOK;
Note: See TracChangeset for help on using the changeset viewer.