| 521 | } |
| 522 | |
| 523 | struct rt_ofw_node *rt_ofw_find_node_by_name(struct rt_ofw_node *from, const char *name) |
| 524 | { |
| 525 | struct rt_ofw_node *np = RT_NULL; |
| 526 | |
| 527 | if (name) |
| 528 | { |
| 529 | rt_ofw_foreach_nodes(from, np) |
| 530 | { |
| 531 | if (np->name && !rt_strcmp(np->name, name)) |
| 532 | { |
| 533 | np = rt_ofw_node_get(np); |
| 534 | break; |
| 535 | } |
| 536 | } |
| 537 | } |
| 538 | |
| 539 | return np; |
| 540 | } |
| 541 | |
| 542 | struct rt_ofw_node *rt_ofw_find_node_by_type(struct rt_ofw_node *from, const char *type) |
| 543 | { |
nothing calls this directly
no test coverage detected