From: Simon Glass <s...@chromium.org>

Allow updating and creating properties, including special methods for
integers.

Signed-off-by: Simon Glass <s...@chromium.org>
Reviewed-by: David Gibson <da...@gibson.dropbear.id.au>
Signed-off-by: David Gibson <da...@gibson.dropbear.id.au>
---
 cpukit/include/libfdt.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cpukit/include/libfdt.h b/cpukit/include/libfdt.h
index 79e4d82619..c99d28fea5 100644
--- a/cpukit/include/libfdt.h
+++ b/cpukit/include/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
-- 
2.13.7

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to