diff options
Diffstat (limited to 'include/linux')
| -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 4d25e4f952d9..b99a1a8c2952 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
| @@ -290,6 +290,8 @@ extern struct device_node *of_get_next_child(const struct device_node *node, | |||
| 290 | extern struct device_node *of_get_next_available_child( | 290 | extern struct device_node *of_get_next_available_child( |
| 291 | const struct device_node *node, struct device_node *prev); | 291 | const struct device_node *node, struct device_node *prev); |
| 292 | 292 | ||
| 293 | extern struct device_node *of_get_compatible_child(const struct device_node *parent, | ||
| 294 | const char *compatible); | ||
| 293 | extern struct device_node *of_get_child_by_name(const struct device_node *node, | 295 | extern struct device_node *of_get_child_by_name(const struct device_node *node, |
| 294 | const char *name); | 296 | const char *name); |
| 295 | 297 | ||
| @@ -632,6 +634,12 @@ static inline bool of_have_populated_dt(void) | |||
| 632 | return false; | 634 | return false; |
| 633 | } | 635 | } |
| 634 | 636 | ||
| 637 | static inline struct device_node *of_get_compatible_child(const struct device_node *parent, | ||
| 638 | const char *compatible) | ||
| 639 | { | ||
| 640 | return NULL; | ||
| 641 | } | ||
| 642 | |||
| 635 | static inline struct device_node *of_get_child_by_name( | 643 | static inline struct device_node *of_get_child_by_name( |
| 636 | const struct device_node *node, | 644 | const struct device_node *node, |
| 637 | const char *name) | 645 | const char *name) |
