diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2025-09-25 14:56:30 -0500 |
---|---|---|
committer | Rob Herring (Arm) <robh@kernel.org> | 2025-09-26 14:51:27 -0500 |
commit | a036bb0e60ad2828c3498bff7465bcbb247b7436 (patch) | |
tree | 9cad8ae708172fad9c9eb9d6b3719848b772bb70 | |
parent | 4fea3336ef57295b989a6b2db4a6946a06e4c787 (diff) |
of: base: Add of_get_next_child_with_prefix() stub
1fcc67e3a354 ("of: base: Add for_each_child_of_node_with_prefix()") added
of_get_next_child_with_prefix() but did not add a stub for the !CONFIG_OF
case.
Add a of_get_next_child_with_prefix() stub so users of
for_each_child_of_node_with_prefix() can be built for compile testing even
when !CONFIG_OF.
Fixes: 1fcc67e3a354 ("of: base: Add for_each_child_of_node_with_prefix()")
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
-rw-r--r-- | include/linux/of.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index a62154aeda1b..5e2c6ed9370a 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -550,6 +550,13 @@ static inline struct device_node *of_get_next_child( return NULL; } +static inline struct device_node *of_get_next_child_with_prefix( + const struct device_node *node, struct device_node *prev, + const char *prefix) +{ + return NULL; +} + static inline struct device_node *of_get_next_available_child( const struct device_node *node, struct device_node *prev) { |