summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@linaro.org>2013-10-11 23:05:10 +0200
committerGrant Likely <grant.likely@linaro.org>2013-10-24 12:43:13 +0200
commit624cfca534f9b1ffb1326617b4e973a3d5ecff4a (patch)
treeff8d3861219a84bea05967bbf80ac726355445d4 /include
parentof/irq: Refactor interrupt-map parsing (diff)
downloadlinux-624cfca534f9b1ffb1326617b4e973a3d5ecff4a.tar.xz
linux-624cfca534f9b1ffb1326617b4e973a3d5ecff4a.zip
of: Add helper for printing an of_phandle_args structure
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>
Diffstat (limited to 'include')
-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 f95aee391e30..374e03536135 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -275,6 +275,7 @@ extern int of_n_size_cells(struct device_node *np);
extern const struct of_device_id *of_match_node(
const struct of_device_id *matches, const struct device_node *node);
extern int of_modalias_node(struct device_node *node, char *modalias, int len);
+extern void of_print_phandle_args(const char *msg, const struct of_phandle_args *args);
extern struct device_node *of_parse_phandle(const struct device_node *np,
const char *phandle_name,
int index);