| 1458 | } |
| 1459 | |
| 1460 | struct rt_ofw_node *rt_ofw_parse_phandle(const struct rt_ofw_node *np, const char *phandle_name, int index) |
| 1461 | { |
| 1462 | struct rt_ofw_cell_args args; |
| 1463 | struct rt_ofw_node *ref_np = RT_NULL; |
| 1464 | |
| 1465 | if (!rt_ofw_parse_phandle_cells(np, phandle_name, RT_NULL, index, &args)) |
| 1466 | { |
| 1467 | ref_np = args.data; |
| 1468 | } |
| 1469 | |
| 1470 | return ref_np; |
| 1471 | } |
| 1472 | |
| 1473 | static rt_err_t ofw_parse_phandle_cells(const struct rt_ofw_node *np, const char *list_name, const char *cells_name, |
| 1474 | int index, struct rt_ofw_cell_args *out_args) |
no test coverage detected