summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-11-09 11:06:43 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-07-13 08:38:18 +0200
commitd96f74f26feb832d25b77483df7f4f68ee78c61e (patch)
tree090d223150960e5d5ba6d5af354d67a195bc8119 /include
parentd0c482359f89e8ea4d4c9ee558f94868f2a78ca2 (diff)
downloadbarebox-d96f74f26feb832d25b77483df7f4f68ee78c61e.tar.gz
barebox-d96f74f26feb832d25b77483df7f4f68ee78c61e.tar.xz
of: base: implement of_get_next_child
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/of.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h
index 1db210b38a..e0ebc39b74 100644
--- a/include/of.h
+++ b/include/of.h
@@ -153,6 +153,8 @@ extern int of_device_is_available(const struct device_node *device);
extern struct device_node *of_get_parent(const struct device_node *node);
extern struct device_node *of_get_next_available_child(
const struct device_node *node, struct device_node *prev);
+struct device_node *of_get_next_child(const struct device_node *node,
+ struct device_node *prev);
extern int of_get_child_count(const struct device_node *parent);
extern int of_get_available_child_count(const struct device_node *parent);
extern struct device_node *of_get_child_by_name(const struct device_node *node,
@@ -308,6 +310,12 @@ static inline struct device_node *of_get_next_available_child(
return NULL;
}
+static inline struct device_node *of_get_next_child(const struct device_node *node,
+ struct device_node *prev)
+{
+ return NULL;
+}
+
static inline int of_get_child_count(const struct device_node *parent)
{
return -ENOSYS;