[PATCH] cmd: led: fix led command usage for the LED_SW_BLINK enabled case
Simon Glass
sjg at chromium.org
Wed Jul 31 16:39:33 CEST 2024
On Wed, 31 Jul 2024 at 07:22, Mikhail Kshevetskiy
<mikhail.kshevetskiy at iopsys.eu> wrote:
>
(please add commit message here)
> Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy at iopsys.eu>
> ---
> cmd/led.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
With that:
Reviewed-by: Simon Glass <sjg at chromium.org>
>
> diff --git a/cmd/led.c b/cmd/led.c
> index 2f786f34c67..91fb856ee59 100644
> --- a/cmd/led.c
> +++ b/cmd/led.c
> @@ -118,7 +118,7 @@ int do_led(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
> return 0;
> }
>
> -#ifdef CONFIG_LED_BLINK
> +#if defined(CONFIG_LED_BLINK) || defined(CONFIG_LED_SW_BLINK)
> #define BLINK "|blink [blink-freq in ms]"
> #else
> #define BLINK ""
> --
> 2.39.2
>
More information about the U-Boot
mailing list