Merge patch series "led: add function naming option from linux"
authorTom Rini <trini@konsulko.com>
Fri, 7 Feb 2025 16:53:43 +0000 (10:53 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 7 Feb 2025 17:39:24 +0000 (11:39 -0600)
Heiko Schocher <hs@denx.de> says:

In linux we have the option to create the name of a led
optionally through the following properties:

- function
- color
- function-enumerator

This series adds support for parsing this properties if there
is no label property.

Link: https://lore.kernel.org/r/20250128135246.74838-1-hs@denx.de
[trini: Document name parameter in led.h]

1  2 
include/led.h

diff --cc include/led.h
@@@ -81,6 -86,6 +86,8 @@@ struct led_sw_blink 
   *
   * @label:    LED label
   * @default_state:    LED default state
++ * @name:     LED name, derived from function, color or function-enumerator
++ *            property.
   * @sw_blink: LED software blink struct
   */
  struct led_uc_plat {