[FIXUP/OFW] rt_ofw_foreach_node_by_compatible args

Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
GuEe-GUI 2024-09-10 13:14:23 +08:00 committed by Meco Man
parent 140ca0d2ff
commit 9fd9c1ee45
1 changed files with 3 additions and 3 deletions

View File

@ -376,9 +376,9 @@ rt_inline rt_bool_t rt_ofw_node_is_type(const struct rt_ofw_node *np, const char
for (np = rt_ofw_find_node_by_type(RT_NULL, type); np; \ for (np = rt_ofw_find_node_by_type(RT_NULL, type); np; \
np = rt_ofw_find_node_by_type(np, type)) np = rt_ofw_find_node_by_type(np, type))
#define rt_ofw_foreach_node_by_compatible(np, type, compatible) \ #define rt_ofw_foreach_node_by_compatible(np, compatible) \
for (np = rt_ofw_find_node_by_compatible(RT_NULL, type, compatible); np; \ for (np = rt_ofw_find_node_by_compatible(RT_NULL, compatible); np; \
np = rt_ofw_find_node_by_compatible(np, type, compatible)) np = rt_ofw_find_node_by_compatible(np, compatible))
#define rt_ofw_foreach_node_by_ids_r(np, id, ids) \ #define rt_ofw_foreach_node_by_ids_r(np, id, ids) \
for (np = rt_ofw_find_node_by_ids_r(RT_NULL, ids, id); \ for (np = rt_ofw_find_node_by_ids_r(RT_NULL, ids, id); \