Changeset 3f03199 in mainline for uspace/lib/usbhost/src/ddf_helpers.c


Ignore:
Timestamp:
2013-09-15T06:33:53Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
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.
Message:

Merge mainline changes.

Major conflicts in USB HC drivers.
Compiles and UHCI works (qemu).
OHCI has device remove problems.

File:
1 edited

Legend:

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

    rdd7078c r3f03199  
    335335
    336336        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) {
    339338                ddf_fun_add_match_id(fun, mid->id, mid->score);
    340339        }
     
    422421        usb_dev_t *victim = NULL;
    423422
    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;
    427426                        break;
     427                }
    428428        }
    429429        if (victim && victim->port == port) {
Note: See TracChangeset for help on using the changeset viewer.