Changeset 56fd7cf in mainline for uspace/lib/usb/src/hc.c
- Timestamp:
- 2012-08-17T11:37:03Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1d5a540
- Parents:
- be2a38ad
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/hc.c
rbe2a38ad r56fd7cf 115 115 */ 116 116 int usb_hc_connection_initialize_from_device(usb_hc_connection_t *connection, 117 const ddf_dev_t *device) 118 { 119 assert(connection); 120 121 if (device == NULL) { 117 ddf_dev_t *device) 118 { 119 if (device == NULL) 122 120 return EBADMEM; 123 }124 121 125 122 devman_handle_t hc_handle; 126 const int rc = usb_get_hc_by_handle(d evice->handle, &hc_handle);123 const int rc = usb_get_hc_by_handle(ddf_dev_get_handle(device), &hc_handle); 127 124 if (rc == EOK) { 128 125 usb_hc_connection_initialize(connection, hc_handle);
Note:
See TracChangeset
for help on using the changeset viewer.