[PATCH v4 2/2] led: add function naming option from linux
Tom Rini
trini at konsulko.com
Tue Jan 28 15:15:03 CET 2025
On Tue, Jan 28, 2025 at 02:52:46PM +0100, Heiko Schocher wrote:
> in linux we have the option to create the name of a led
> optionally through the following properties:
>
> - function
> - color
> - function-enumerator
>
> This patch adds support for parsing this properties if there
> is no label property.
>
> The led name is created in led_post_bind() and we need some
> storage place for it. Currently this patch prevents to use
> malloc() instead it stores the name in new member :
>
> char name[LED_MAX_NAME_SIZE];
>
> of struct led_uc_plat. While at it append led tests for the
> new feature.
>
> Signed-off-by: Heiko Schocher <hs at denx.de>
Reviewed-by: Tom Rini <trini at konsulko.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250128/f95d3b62/attachment.sig>
More information about the U-Boot
mailing list