summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2026-03-11 18:43:27 -0700
committerLee Jones <lee@kernel.org>2026-03-26 09:31:44 +0000
commit4f530c65487636dc1536b3fa1041f9a877a66a7f (patch)
treedb4b255dd51a4605d3a5fd02b08afdf0e3eb86ed /tools/lib/python
parent0e2287999f0432b51a54c235db660789ca657f53 (diff)
leds: core: Implement fallback to software node name for LED names
If a software node defining an LED is missing explicit 'label', 'color', or 'function' properties, led_compose_name() currently fails with -EINVAL, because fallback to using node name in place of LED name/label is only implemented for OF nodes. Implement similar fallback for software nodes. Unlike OF nodes, which use the short 'name' attribute of the device tree node to avoid including the address block, use fwnode_get_name() directly since swnodes do not include an address block and always have a valid name. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Link: https://patch.msgid.link/20260311-led-swnode-name-v1-1-798a49e041c6@gmail.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions