diff options
author | Simon Glass <sjg@chromium.org> | 2018-06-06 15:37:05 -0600 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2018-06-12 14:44:20 +1000 |
commit | 9aafa33d99ed8a6fd9af827480b58a3f463917fb (patch) | |
tree | eb8144bb4d0b19365c464e6cacc56aaa0f22541c /libfdt | |
parent | 5a598671fdbf20355ecbaf59d9f502e689df683f (diff) | |
download | dtc-9aafa33d99ed8a6fd9af827480b58a3f463917fb.zip dtc-9aafa33d99ed8a6fd9af827480b58a3f463917fb.tar.gz dtc-9aafa33d99ed8a6fd9af827480b58a3f463917fb.tar.bz2 |
pylibfdt: Add functions to update properties
Allow updating and creating properties, including special methods for
integers.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'libfdt')
-rw-r--r-- | libfdt/libfdt.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libfdt/libfdt.h b/libfdt/libfdt.h index 79e4d82..c99d28f 100644 --- a/libfdt/libfdt.h +++ b/libfdt/libfdt.h @@ -1345,10 +1345,13 @@ static inline int fdt_property_u64(void *fdt, const char *name, uint64_t val) fdt64_t tmp = cpu_to_fdt64(val); return fdt_property(fdt, name, &tmp, sizeof(tmp)); } + +#ifndef SWIG /* Not available in Python */ static inline int fdt_property_cell(void *fdt, const char *name, uint32_t val) { return fdt_property_u32(fdt, name, val); } +#endif /** * fdt_property_placeholder - add a new property and return a ptr to its value |