| 1547 | } |
| 1548 | |
| 1549 | rt_err_t rt_ofw_parse_phandle_cells(const struct rt_ofw_node *np, const char *list_name, const char *cells_name, |
| 1550 | int index, struct rt_ofw_cell_args *out_args) |
| 1551 | { |
| 1552 | rt_err_t err; |
| 1553 | |
| 1554 | if (np && list_name && index >= 0 && out_args) |
| 1555 | { |
| 1556 | err = ofw_parse_phandle_cells(np, list_name, cells_name, index, out_args); |
| 1557 | } |
| 1558 | else |
| 1559 | { |
| 1560 | err = -RT_EINVAL; |
| 1561 | } |
| 1562 | |
| 1563 | return err; |
| 1564 | } |
| 1565 | |
| 1566 | int rt_ofw_count_phandle_cells(const struct rt_ofw_node *np, const char *list_name, const char *cells_name) |
| 1567 | { |
no test coverage detected