* [PATCH v3] of: Add stubs for of_get_next_child and of_get_next_available_child for !OF
@ 2013-06-20 15:58 Alexander Shiyan
0 siblings, 0 replies; only message in thread
From: Alexander Shiyan @ 2013-06-20 15:58 UTC (permalink / raw)
To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
Cc: Grant Likely, Alexander Shiyan, Rob Herring
Patch adds an empty versions of of_get_next_child and
of_get_next_available_child for non-OF builds.
Signed-off-by: Alexander Shiyan <shc_work-JGs/UdohzUI@public.gmane.org>
---
include/linux/of.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/include/linux/of.h b/include/linux/of.h
index 1fd08ca..832b41a 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -369,6 +369,18 @@ static inline bool of_have_populated_dt(void)
#define for_each_child_of_node(parent, child) \
while (0)
+static inline struct device_node *of_get_next_child(
+ const struct device_node *node, struct device_node *prev)
+{
+ return NULL;
+}
+
+static inline struct device_node *of_get_next_available_child(
+ const struct device_node *node, struct device_node *prev)
+{
+ return NULL;
+}
+
static inline struct device_node *of_get_child_by_name(
const struct device_node *node,
const char *name)
--
1.8.1.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-06-20 15:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-20 15:58 [PATCH v3] of: Add stubs for of_get_next_child and of_get_next_available_child for !OF Alexander Shiyan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).