Changeset ee794529 in mainline for uspace/drv/bus/usb/ehci/ehci_bus.c


Ignore:
Timestamp:
2017-10-22T16:38:19Z (7 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
89cefe78
Parents:
4594baa
Message:

Refactoring. Renamed functions in bus endpoint interface. Register/release is now register/unregister to prevent name collisions with use/release.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/ehci_bus.c

    r4594baa ree794529  
    129129}
    130130
    131 static int ehci_release_ep(bus_t *bus_base, endpoint_t *ep)
     131static int ehci_unregister_ep(bus_t *bus_base, endpoint_t *ep)
    132132{
    133133        ehci_bus_t *bus = (ehci_bus_t *) bus_base;
     
    135135        assert(ep);
    136136
    137         const int err = bus->parent_ops.release_endpoint(bus_base, ep);
     137        const int err = bus->parent_ops.unregister_endpoint(bus_base, ep);
    138138        if (err)
    139139                return err;
     
    170170
    171171        ops->register_endpoint = ehci_register_ep;
    172         ops->release_endpoint = ehci_release_ep;
     172        ops->unregister_endpoint = ehci_unregister_ep;
    173173
    174174        ops->create_batch = ehci_bus_create_batch;
Note: See TracChangeset for help on using the changeset viewer.