zephyr/scripts/dts/python-devicetree
Chris Duf 5abce9b8ec Devicetree: edtlib: fix possible KeyError in Binding.description
Attempting to access the Binding.description property
when the description is unavailable would raise KeyError: 'description'.

Known bindings that won't define a 'description' key in the
Binding.raw dictionary include the 'compatible' property's binding
of nodes such as /, /soc, /leds or /pwmleds.
Note that this may also occur when a proper YAML
binding file is available (e.g. pwmleds.yaml).

This patch simply substitutes the Binding.raw dictionary indexing
with the get() function: will return None and not raise KeyError.

Signed-off-by: Chris Duf <chris@openmarl.org>
2022-10-12 18:45:32 +09:00
..
src/devicetree Devicetree: edtlib: fix possible KeyError in Binding.description 2022-10-12 18:45:32 +09:00
tests dtlib: error out on duplicate node names 2022-09-21 07:55:40 -07:00
.gitignore
requirements.txt
setup.py
tox.ini python-devicetree: CI hotfix 2022-06-06 09:09:27 -07:00