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)
committerRafał Miłecki <rafal@milecki.pl>
Wed, 6 Dec 2023 21:13:25 +0000 (22:13 +0100)
commit7606dac661f60d378d2cf42c6434811e6234f252
treee8b1a2b0e7bd1ca8392b3e3191bd94868378f213
parent6261ae12e1161ebefa94f61a1c96f9febd7ed985
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>
(cherry picked from commit e814acc59948943c776ac319a348f72c0d19f33c)
package/base-files/files/lib/functions/leds.sh