Changeset 296d22fc in mainline for uspace/lib/usbhost/src/endpoint.c


Ignore:
Timestamp:
2018-01-25T02:05:57Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fa4b12d5
Parents:
d369b3b
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-25 02:03:48)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-25 02:05:57)
Message:

usbhub: revert the runtime binding of bus methods

It was just a dead end.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/endpoint.c

    rd369b3b r296d22fc  
    9797static inline void endpoint_destroy(endpoint_t *ep)
    9898{
    99         const bus_ops_t *ops = BUS_OPS_LOOKUP(get_bus_ops(ep), endpoint_destroy);
    100         if (ops) {
     99        const bus_ops_t *ops = get_bus_ops(ep);
     100        if (ops->endpoint_destroy) {
    101101                ops->endpoint_destroy(ep);
    102102        } else {
     
    237237        }
    238238
    239         const bus_ops_t *ops = BUS_OPS_LOOKUP(device->bus->ops, batch_schedule);
    240         if (!ops) {
     239        const bus_ops_t *ops = device->bus->ops;
     240        if (!ops->batch_schedule) {
    241241                usb_log_error("HCD does not implement scheduler.");
    242242                return ENOTSUP;
Note: See TracChangeset for help on using the changeset viewer.