Changeset f1fae414 in mainline for uspace/drv/bus/usb/usbmid/explore.c


Ignore:
Timestamp:
2011-06-22T01:34:53Z (13 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8d7e82c1, cac458f
Parents:
72ec8cc (diff), bf172825 (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.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbmid/explore.c

    r72ec8cc rf1fae414  
    5454 * @return Interface @p interface_no is already present in the list.
    5555 */
    56 static bool interface_in_list(link_t *list, int interface_no)
     56static bool interface_in_list(list_t *list, int interface_no)
    5757{
    58         link_t *l;
    59         for (l = list->next; l != list; l = l->next) {
     58        list_foreach(*list, l) {
    6059                usbmid_interface_t *iface
    6160                    = list_get_instance(l, usbmid_interface_t, link);
     
    7574 */
    7675static void create_interfaces(uint8_t *config_descriptor,
    77     size_t config_descriptor_size, link_t *list)
     76    size_t config_descriptor_size, list_t *list)
    7877{
    7978        usb_dp_parser_data_t data = {
     
    181180
    182181        /* Create interface children. */
    183         link_t interface_list;
     182        list_t interface_list;
    184183        list_initialize(&interface_list);
    185184        create_interfaces(config_descriptor_raw, config_descriptor_size,
    186185            &interface_list);
    187186
    188         link_t *link;
    189         for (link = interface_list.next; link != &interface_list;
    190             link = link->next) {
     187        list_foreach(interface_list, link) {
    191188                usbmid_interface_t *iface = list_get_instance(link,
    192189                    usbmid_interface_t, link);
Note: See TracChangeset for help on using the changeset viewer.