mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
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>