aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/of.h')
-rw-r--r--include/linux/of.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 1b1163225f3b..72843b72a2b2 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -193,6 +193,8 @@ extern struct device_node *of_get_next_child(const struct device_node *node,
193extern struct device_node *of_get_next_available_child( 193extern struct device_node *of_get_next_available_child(
194 const struct device_node *node, struct device_node *prev); 194 const struct device_node *node, struct device_node *prev);
195 195
196extern struct device_node *of_get_child_by_name(const struct device_node *node,
197 const char *name);
196#define for_each_child_of_node(parent, child) \ 198#define for_each_child_of_node(parent, child) \
197 for (child = of_get_next_child(parent, NULL); child != NULL; \ 199 for (child = of_get_next_child(parent, NULL); child != NULL; \
198 child = of_get_next_child(parent, child)) 200 child = of_get_next_child(parent, child))
@@ -315,6 +317,12 @@ static inline const char* of_node_full_name(struct device_node *np)
315 return "<no-node>"; 317 return "<no-node>";
316} 318}
317 319
320static inline struct device_node *of_find_node_by_name(struct device_node *from,
321 const char *name)
322{
323 return NULL;
324}
325
318static inline bool of_have_populated_dt(void) 326static inline bool of_have_populated_dt(void)
319{ 327{
320 return false; 328 return false;