Changeset 3f03199 in mainline for uspace/lib/usbhost/src/ddf_helpers.c
- Timestamp:
- 2013-09-15T06:33:53Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9348862
- Parents:
- dd7078c (diff), 1c0cef0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/ddf_helpers.c
rdd7078c r3f03199 335 335 336 336 ddf_fun_set_ops(fun, &usb_ops); 337 list_foreach(mids->ids, iter) { 338 match_id_t *mid = list_get_instance(iter, match_id_t, link); 337 list_foreach(mids->ids, link, const match_id_t, mid) { 339 338 ddf_fun_add_match_id(fun, mid->id, mid->score); 340 339 } … … 422 421 usb_dev_t *victim = NULL; 423 422 424 list_foreach(hub->devices, it) {425 victim = list_get_instance(it, usb_dev_t, link);426 if (victim->port == port)423 list_foreach(hub->devices, link, usb_dev_t, it) { 424 if (it->port == port) { 425 victim = it; 427 426 break; 427 } 428 428 } 429 429 if (victim && victim->port == port) {
Note:
See TracChangeset
for help on using the changeset viewer.