diff options
Diffstat (limited to 'pylibfdt/libfdt.i')
-rw-r--r-- | pylibfdt/libfdt.i | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pylibfdt/libfdt.i b/pylibfdt/libfdt.i index 29695bb..2c104ac 100644 --- a/pylibfdt/libfdt.i +++ b/pylibfdt/libfdt.i @@ -418,7 +418,8 @@ class Fdt: """ return check_err(fdt_node_offset_by_phandle(self._fdt, phandle), quiet) -class Property: + +class Property(bytearray): """Holds a device tree property name and value. This holds a copy of a property taken from the device tree. It does not @@ -427,11 +428,11 @@ class Property: Properties: name: Property name - value: Proper value as a bytearray + value: Property value as a bytearray """ def __init__(self, name, value): + bytearray.__init__(self, value) self.name = name - self.value = value %} %rename(fdt_property) fdt_property_func; |