diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-02-17 17:13:38 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-03-06 11:41:27 +0100 |
commit | 6be475957926afe3e3af97dcdc9e001f10b0d3d5 (patch) | |
tree | f9960fbcaa9a9e9709181603ab859a70be44be21 /include | |
parent | 04bd477ee42687075e13dabb6c11f90a685a5450 (diff) | |
download | barebox-6be475957926afe3e3af97dcdc9e001f10b0d3d5.tar.gz barebox-6be475957926afe3e3af97dcdc9e001f10b0d3d5.tar.xz |
of: Add of_set_property and of_create_node
Add functions to create a new device node and to create/set
a new property based on the nodepath.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/of.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h index 816627357c..3305f03fe4 100644 --- a/include/of.h +++ b/include/of.h @@ -138,6 +138,9 @@ 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_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); #ifdef CONFIG_OFDEVICE int of_parse_partitions(const char *cdevname, |