aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@linaro.org>2013-10-11 17:05:10 -0400
committerShawn Guo <shawn.guo@freescale.com>2014-05-16 04:19:12 -0400
commit92df232fa6f43a33058a99a9cf670f17d2d64d18 (patch)
tree04b029cd1107fd281456fcee808a0dd63f232976 /include/linux
parentc5754b7462e34a7ac8d990db57b5647fc8783140 (diff)
ENGR00313685-5 of: Add helper for printing an of_phandle_args structure
commit 624cfca534f9b1ffb1326617b4e973a3d5ecff4a upstream. It is sometimes useful for debug to get the contents of an of_phandle_args structure out into the kernel log. Signed-off-by: Grant Likely <grant.likely@linaro.org> Signed-off-by: Shawn Guo <shawn.guo@freescale.com> Conflicts: drivers/of/base.c
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/of.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 429e16801858..668e12322dd4 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -274,6 +274,7 @@ extern int of_n_size_cells(struct device_node *np);
274extern const struct of_device_id *of_match_node( 274extern const struct of_device_id *of_match_node(
275 const struct of_device_id *matches, const struct device_node *node); 275 const struct of_device_id *matches, const struct device_node *node);
276extern int of_modalias_node(struct device_node *node, char *modalias, int len); 276extern int of_modalias_node(struct device_node *node, char *modalias, int len);
277extern void of_print_phandle_args(const char *msg, const struct of_phandle_args *args);
277extern struct device_node *of_parse_phandle(const struct device_node *np, 278extern struct device_node *of_parse_phandle(const struct device_node *np,
278 const char *phandle_name, 279 const char *phandle_name,
279 int index); 280 int index);