[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <1355168499-5847-8-git-send-email-s.nawrocki@samsung.com>
Date: Mon, 10 Dec 2012 20:41:33 +0100
From: Sylwester Nawrocki <s.nawrocki@...sung.com>
To: g.liakhovetski@....de, linux-media@...r.kernel.org
Cc: grant.likely@...retlab.ca, rob.herring@...xeda.com,
thomas.abraham@...aro.org, t.figa@...sung.com,
sw0312.kim@...sung.com, kyungmin.park@...sung.com,
devicetree-discuss@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
Sylwester Nawrocki <s.nawrocki@...sung.com>
Subject: [PATCH RFC 07/13] of: Add empty of_get_next_child() function definition
Add an empty of_get_next_child() function definition so users can
be build when CONFIG_OF is disabled and are not required to exclude
OF specific parts explicitly with #ifdefs.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@...sung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@...sung.com>
---
include/linux/of.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/linux/of.h b/include/linux/of.h
index 7df42cc..fb92acc 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -335,6 +335,13 @@ static inline bool of_have_populated_dt(void)
#define for_each_available_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_child_by_name(
const struct device_node *node,
const char *name)
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists