[PATCH 0/4] Add new helpers to pylibfdt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Allow decoding properties as stringlist and {u,}int{32,64} arrays,
wrap fdt_get_path from the C library and add a useful helper
getprop_or_none that returns None instead of throwing an exception when
a property isn't found.

Luca Weiss (4):
  pylibfdt: add Property.as_stringlist()
  pylibfdt: add Property.as_*int*_array()
  pylibfdt: add FdtRo.get_path()
  pylibfdt: add FdtRo.getprop_or_none()

 pylibfdt/libfdt.i       | 53 +++++++++++++++++++++++++++++++++++++++++
 tests/pylibfdt_tests.py | 33 +++++++++++++++++++++++++
 tests/test_props.dts    |  4 ++++
 3 files changed, 90 insertions(+)


[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux