|
@@ -290,6 +290,8 @@ extern struct device_node *of_get_next_child(const struct device_node *node,
|
|
extern struct device_node *of_get_next_available_child(
|
|
extern struct device_node *of_get_next_available_child(
|
|
const struct device_node *node, struct device_node *prev);
|
|
const struct device_node *node, struct device_node *prev);
|
|
|
|
|
|
|
|
+extern struct device_node *of_get_compatible_child(const struct device_node *parent,
|
|
|
|
+ const char *compatible);
|
|
extern struct device_node *of_get_child_by_name(const struct device_node *node,
|
|
extern struct device_node *of_get_child_by_name(const struct device_node *node,
|
|
const char *name);
|
|
const char *name);
|
|
|
|
|
|
@@ -632,6 +634,12 @@ static inline bool of_have_populated_dt(void)
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static inline struct device_node *of_get_compatible_child(const struct device_node *parent,
|
|
|
|
+ const char *compatible)
|
|
|
|
+{
|
|
|
|
+ return NULL;
|
|
|
|
+}
|
|
|
|
+
|
|
static inline struct device_node *of_get_child_by_name(
|
|
static inline struct device_node *of_get_child_by_name(
|
|
const struct device_node *node,
|
|
const struct device_node *node,
|
|
const char *name)
|
|
const char *name)
|