summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-04-21 16:28:54 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-04-22 09:23:35 +0200
commit266dea34a53bf985ff851662309b5c07c250b4d0 (patch)
tree285aaaee4786920693cc7c92881a7ea140695d08 /include
parent8e9d9bc7e6d9eaabd8287f5cd1db059518aec385 (diff)
downloadbarebox-266dea34a53bf985ff851662309b5c07c250b4d0.tar.gz
barebox-266dea34a53bf985ff851662309b5c07c250b4d0.tar.xz
of: Add of_property_read_string_index()
Directly imported from the Kernel Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/of.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h
index 94ccfd8739..852231e7a4 100644
--- a/include/of.h
+++ b/include/of.h
@@ -160,6 +160,8 @@ void of_delete_property(struct property *pp);
int of_property_read_string(struct device_node *np, const char *propname,
const char **out_string);
+int of_property_read_string_index(struct device_node *np, const char *propname,
+ int index, const char **output);
int of_set_property(struct device_node *node, const char *p, const void *val, int len,
int create);
struct device_node *of_create_node(struct device_node *root, const char *path);