diff options
| author | Patrice Chotard <[email protected]> | 2025-10-09 15:08:33 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-10-17 08:57:45 -0600 |
| commit | d9915318b5d8dd9c31209541c1d99ab0edb339ac (patch) | |
| tree | 622d9adb5597ed38e1f538e5116440b9c2e6e1a4 /doc/develop/bootstd | |
| parent | 0eaa4b337336dbbe93395d1f2ccc18937eaafea2 (diff) | |
led: Update led_get_by_label()
During led_init() execution, led_get_label() returns either the label
property (which is an obsolete property [1]) or the LED's node name.
It can't be the function name as dev parameter is NULL.
Later, during led_post_bind() execution, for the same LED, the attributed
label by led_get_label() can be the function name, as led_get_label()
dev's parameter is set.
During call sequence led_boot_on() => led_boot_get() => led_get_by_label()
with label given in parameter (priv->boot_led_label which is either the
label or node's name set previously in led_init()) can be different to
to uc_plat->label and returns -ENODEV.
Update led_get_by_label() to allow to retrieve LED also by its node name.
[1] https://www.kernel.org/doc/Documentation/devicetree/bindings/leds/common.yaml
Signed-off-by: Patrice Chotard <[email protected]>
Cc: Yegor Yefremov <[email protected]>
Diffstat (limited to 'doc/develop/bootstd')
0 files changed, 0 insertions, 0 deletions
