diff options
Diffstat (limited to 'include/linux/of.h')
| -rw-r--r-- | include/linux/of.h | 8 |
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, | |||
| 193 | extern struct device_node *of_get_next_available_child( | 193 | extern 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 | ||
| 196 | extern 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 | ||
| 320 | static inline struct device_node *of_find_node_by_name(struct device_node *from, | ||
| 321 | const char *name) | ||
| 322 | { | ||
| 323 | return NULL; | ||
| 324 | } | ||
| 325 | |||
| 318 | static inline bool of_have_populated_dt(void) | 326 | static inline bool of_have_populated_dt(void) |
| 319 | { | 327 | { |
| 320 | return false; | 328 | return false; |
