base-files: support parse DT LED color and function
authorShiji Yang <yangshiji66@qq.com>
Tue, 31 Oct 2023 10:47:49 +0000 (18:47 +0800)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 2 Dec 2023 18:46:14 +0000 (19:46 +0100)
commite814acc59948943c776ac319a348f72c0d19f33c
treeab8432ac808dfa3bc20d1a01296c553734644761
parent6c41c585e37c44e25bc8d63c216635285aa05461
base-files: support parse DT LED color and function

The 'label' property in led node has been deprecated and we'd better
to avoid using it. This patch allows us to extract DT OF LED name
from the newly introduced LED properties "color", "function" and
"function-enumerator".

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
package/base-files/files/lib/functions/leds.sh