Changeset ee794529 in mainline for uspace/drv/bus/usb/ohci


Ignore:
Timestamp:
2017-10-22T16:38:19Z (8 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/ohci/ohci_bus.c

    r4594baa ree794529  
    130130}
    131131
    132 static int ohci_release_ep(bus_t *bus_base, endpoint_t *ep)
     132static int ohci_unregister_ep(bus_t *bus_base, endpoint_t *ep)
    133133{
    134134        ohci_bus_t *bus = (ohci_bus_t *) bus_base;
     
    136136        assert(ep);
    137137
    138         const int err = bus->parent_ops.release_endpoint(bus_base, ep);
     138        const int err = bus->parent_ops.unregister_endpoint(bus_base, ep);
    139139        if (err)
    140140                return err;
     
    170170
    171171        ops->register_endpoint = ohci_register_ep;
    172         ops->release_endpoint = ohci_release_ep;
     172        ops->unregister_endpoint = ohci_unregister_ep;
    173173
    174174        ops->create_batch = ohci_bus_create_batch;
Note: See TracChangeset for help on using the changeset viewer.