Changeset 8ebe212 in mainline for kernel/genarch/src/ofw/ofw_tree.c
- Timestamp:
- 2018-04-13T12:39:06Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 18b6a88
- Parents:
- f712a85
- git-author:
- Jiri Svoboda <jiri@…> (2018-04-12 17:38:04)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-04-13 12:39:06)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/ofw/ofw_tree.c
rf712a85 r8ebe212 106 106 * Try to find the disambigued name. 107 107 */ 108 for (ofw_tree_node_t * 108 for (ofw_tree_node_t *cur = node->child; cur; cur = cur->peer) { 109 109 if (str_cmp(cur->da_name, name) == 0) 110 110 return cur; … … 118 118 * are not always fully-qualified. 119 119 */ 120 for (ofw_tree_node_t * 120 for (ofw_tree_node_t *cur = node->child; cur; cur = cur->peer) { 121 121 if (str_cmp(ofw_tree_node_name(cur), name) == 0) 122 122 return cur; … … 138 138 const char *dtype) 139 139 { 140 for (ofw_tree_node_t * 140 for (ofw_tree_node_t *cur = node->child; cur; cur = cur->peer) { 141 141 ofw_tree_property_t *prop = 142 142 ofw_tree_getprop(cur, "device_type"); … … 167 167 phandle handle) 168 168 { 169 for (ofw_tree_node_t * 169 for (ofw_tree_node_t *cur = root; cur; cur = cur->peer) { 170 170 if (cur->node_handle == handle) 171 171 return cur; … … 194 194 const char *dtype) 195 195 { 196 for (ofw_tree_node_t * 196 for (ofw_tree_node_t *cur = node->peer; cur; cur = cur->peer) { 197 197 ofw_tree_property_t *prop = 198 198 ofw_tree_getprop(cur, "device_type"); … … 220 220 const char *name) 221 221 { 222 for (ofw_tree_node_t * 222 for (ofw_tree_node_t *cur = node->peer; cur; cur = cur->peer) { 223 223 ofw_tree_property_t *prop = 224 224 ofw_tree_getprop(cur, "name"); … … 284 284 const char *dtype, ofw_tree_walker_t walker, void *arg) 285 285 { 286 for (ofw_tree_node_t * 286 for (ofw_tree_node_t *cur = node; cur; cur = cur->peer) { 287 287 ofw_tree_property_t *prop = 288 288 ofw_tree_getprop(cur, "device_type"); … … 388 388 char *cur_path = (char *) malloc(PATH_MAX_LEN, 0); 389 389 390 for (ofw_tree_node_t * 390 for (ofw_tree_node_t *cur = node; cur; cur = cur->peer) { 391 391 if ((cur->parent) && (path)) 392 392 snprintf(cur_path, PATH_MAX_LEN, "%s.%s", path, cur->da_name);
Note:
See TracChangeset
for help on using the changeset viewer.