diff options
| author | GuEe-GUI <[email protected]> | 2024-09-10 13:14:23 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2024-09-13 17:33:29 -0400 |
| commit | 9fd9c1ee458e623044935d20aa28c587a1afa91d (patch) | |
| tree | 81da5823ed7081a614a5239ae2bf7433440846fa /components/drivers/include | |
| parent | 140ca0d2ff1f776632766aba135c3b5a282bad22 (diff) | |
[FIXUP/OFW] rt_ofw_foreach_node_by_compatible args
Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/drivers/ofw.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/drivers/include/drivers/ofw.h b/components/drivers/include/drivers/ofw.h index 7531dfe3c5..aec5ba451a 100644 --- a/components/drivers/include/drivers/ofw.h +++ b/components/drivers/include/drivers/ofw.h @@ -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; \ np = rt_ofw_find_node_by_type(np, type)) -#define rt_ofw_foreach_node_by_compatible(np, type, compatible) \ - for (np = rt_ofw_find_node_by_compatible(RT_NULL, type, compatible); np; \ - np = rt_ofw_find_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, compatible); np; \ + np = rt_ofw_find_node_by_compatible(np, compatible)) #define rt_ofw_foreach_node_by_ids_r(np, id, ids) \ for (np = rt_ofw_find_node_by_ids_r(RT_NULL, ids, id); \ |
