diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2007-09-06 09:46:17 -0600 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2007-09-06 09:46:17 -0600 |
commit | 41bb76e941929f54a73206fb132f7a4c275543a3 (patch) | |
tree | 29e48be90ffb053f8ead77e4a95f8474cd04c967 /include/libfdt.h | |
parent | 60174746c668b309378a91488dded898e9553eae (diff) | |
download | u-boot-imx-41bb76e941929f54a73206fb132f7a4c275543a3.zip u-boot-imx-41bb76e941929f54a73206fb132f7a4c275543a3.tar.gz u-boot-imx-41bb76e941929f54a73206fb132f7a4c275543a3.tar.bz2 |
libfdt: add convenience function fdt_find_and_setprop()
Given the path to a node, fdt_find_and_setprop() allows a property value
to be set directly.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include/libfdt.h')
-rw-r--r-- | include/libfdt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libfdt.h b/include/libfdt.h index 340e89d..38c65a9 100644 --- a/include/libfdt.h +++ b/include/libfdt.h @@ -140,6 +140,8 @@ int fdt_setprop(void *fdt, int nodeoffset, const char *name, }) #define fdt_setprop_string(fdt, nodeoffset, name, str) \ fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1) +int fdt_find_and_setprop(void *fdt, const char *node, const char *prop, + const void *val, int len, int create); int fdt_delprop(void *fdt, int nodeoffset, const char *name); int fdt_add_subnode_namelen(void *fdt, int parentoffset, const char *name, int namelen); |