Changeset cac458f in mainline for uspace/drv/bus/usb/usbmid/explore.c
- Timestamp:
- 2011-06-22T01:59:39Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 41e2118
- Parents:
- 79506d6 (diff), f1fae414 (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 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbmid/explore.c
r79506d6 rcac458f 54 54 * @return Interface @p interface_no is already present in the list. 55 55 */ 56 static bool interface_in_list(li nk_t *list, int interface_no)56 static bool interface_in_list(list_t *list, int interface_no) 57 57 { 58 link_t *l; 59 for (l = list->next; l != list; l = l->next) { 58 list_foreach(*list, l) { 60 59 usbmid_interface_t *iface 61 60 = list_get_instance(l, usbmid_interface_t, link); … … 75 74 */ 76 75 static void create_interfaces(uint8_t *config_descriptor, 77 size_t config_descriptor_size, li nk_t *list)76 size_t config_descriptor_size, list_t *list) 78 77 { 79 78 usb_dp_parser_data_t data = { … … 181 180 182 181 /* Create interface children. */ 183 li nk_t interface_list;182 list_t interface_list; 184 183 list_initialize(&interface_list); 185 184 create_interfaces(config_descriptor_raw, config_descriptor_size, 186 185 &interface_list); 187 186 188 link_t *link; 189 for (link = interface_list.next; link != &interface_list; 190 link = link->next) { 187 list_foreach(interface_list, link) { 191 188 usbmid_interface_t *iface = list_get_instance(link, 192 189 usbmid_interface_t, link);
Note:
See TracChangeset
for help on using the changeset viewer.