Merge patch series "led: fixes"

Patrice Chotard <patrice.chotard@foss.st.com> says:

  - Update led_get_by_label()
  - Fix led Kconfig

Link: https://lore.kernel.org/r/20251009130844.11703-1-patrice.chotard@foss.st.com
This commit is contained in:
Tom Rini
2025-10-17 08:58:10 -06:00
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -11,6 +11,7 @@ config LED
config LED_BOOT
bool "Enable LED boot support"
depends on LED
help
Enable LED boot support.
@@ -22,6 +23,7 @@ config LED_BOOT
config LED_ACTIVITY
bool "Enable LED activity support"
depends on LED
help
Enable LED activity support.
+3
View File
@@ -65,6 +65,9 @@ int led_get_by_label(const char *label, struct udevice **devp)
/* Ignore the top-level LED node */
if (uc_plat->label && !strcmp(label, uc_plat->label))
return uclass_get_device_tail(dev, 0, devp);
if (!strcmp(label, ofnode_get_name(dev_ofnode(dev))))
return uclass_get_device_tail(dev, 0, devp);
}
return -ENODEV;