Changeset 2cf28b9 in mainline for uspace/lib/usbhost
- Timestamp:
- 2017-10-25T15:22:45Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 62558202
- Parents:
- f668d60
- Location:
- uspace/lib/usbhost
- Files:
-
- 2 edited
-
include/usb/host/bus.h (modified) (1 diff)
-
src/bus.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/bus.h
rf668d60 r2cf28b9 82 82 int (*remove_device)(bus_t *, hcd_t *, device_t *); 83 83 84 /* The following operations are protected by a bus guard. */ 84 85 endpoint_t *(*create_endpoint)(bus_t *); 85 86 int (*register_endpoint)(bus_t *, endpoint_t *, const usb_endpoint_desc_t *); -
uspace/lib/usbhost/src/bus.c
rf668d60 r2cf28b9 87 87 return ENOTSUP; 88 88 89 fibril_mutex_lock(&bus->guard); 90 const int r = bus->ops.enumerate_device(bus, hcd, dev); 91 fibril_mutex_unlock(&bus->guard); 92 return r; 89 return bus->ops.enumerate_device(bus, hcd, dev); 93 90 } 94 91 … … 101 98 return ENOTSUP; 102 99 103 fibril_mutex_lock(&bus->guard); 104 const int r = bus->ops.remove_device(bus, hcd, dev); 105 fibril_mutex_unlock(&bus->guard); 106 return r; 100 return bus->ops.remove_device(bus, hcd, dev); 107 101 } 108 102
Note:
See TracChangeset
for help on using the changeset viewer.
