base-files: support label-property-less in get_dt_leds
authorChristian Lamparter <chunkeey@gmail.com>
Sun, 30 Aug 2020 02:42:54 +0000 (04:42 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 5 Sep 2020 21:24:46 +0000 (23:24 +0200)
commita487e67cbc12025345f4af55f60af54f1d087005
treea8b1aabe3abf50919e9049f45fd0a5735489d4bc
parent04e0e4167e1a66bc3b744634d65fb52d4a6954fe
base-files: support label-property-less in get_dt_leds

The LED's "label" property has been deprecated in upstream by:

|commit c5d18dd6b64e09dd6984bda9bdd55160af537a8c
|Author: Jacek Anaszewski <jacek.anaszewski@gmail.com>
|Date:   Sun Jun 9 20:19:04 2019 +0200
|
|    dt-bindings: leds: Add properties for LED name construction
|
|    Introduce dedicated properties for conveying information about
|    LED function and color. Mark old "label" property as deprecated.
|
|    Additionally function-enumerator property is being provided
|    for the cases when neither function nor color can be used
|    for LED differentiation.

in order to be somewhat prepared, this patch adds a fallback
as a last resort to make the current led code work by falling
back to the node-name as the "label".

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
package/base-files/Makefile
package/base-files/files/lib/functions/leds.sh