summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-02-17 18:43:47 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-03-06 11:41:27 +0100
commita75b5c5d8eca0ce1d5085e8e66301a78d7f39c64 (patch)
tree66b7e9988126c6f70c06cf8fb9a04ac4c5fb96aa /include
parent69c54bc9398bf33680f095c6495e957293a868bb (diff)
downloadbarebox-a75b5c5d8eca0ce1d5085e8e66301a78d7f39c64.tar.gz
barebox-a75b5c5d8eca0ce1d5085e8e66301a78d7f39c64.tar.xz
of: export of_find_child
of_find_child is a useful function. Export it and rename it to of_find_child_by_name. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/of.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h
index 95d970201b..f3fc2aead3 100644
--- a/include/of.h
+++ b/include/of.h
@@ -72,6 +72,8 @@ struct property *of_find_property(const struct device_node *node, const char *na
struct device_node *of_find_node_by_path(const char *path);
+struct device_node *of_find_child_by_name(struct device_node *node, const char *name);
+
struct fdt_header *fdt_get_tree(void);
#define device_node_for_nach_child(node, child) \