Changeset 1a38701 in mainline for uspace/lib/usb/src/dev.c
- Timestamp:
- 2011-12-12T12:09:12Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dbb7e3b
- Parents:
- c24c157d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/dev.c
rc24c157d r1a38701 106 106 return EOK; 107 107 } 108 /*----------------------------------------------------------------------------*/109 int usb_device_connection_initialize(usb_device_connection_t *connection,110 usb_hc_connection_t *hc_connection, usb_address_t address)111 {112 assert(connection);113 114 if (hc_connection == NULL) {115 return EBADMEM;116 }117 118 if ((address < 0) || (address >= USB11_ADDRESS_MAX)) {119 return EINVAL;120 }121 122 connection->hc_connection = hc_connection;123 connection->address = address;124 return EOK;125 }
Note:
See TracChangeset
for help on using the changeset viewer.