From: Mikhail Kshevetskiy Date: Wed, 14 Aug 2024 10:08:30 +0000 (+0400) Subject: cmd: led: fix led command usage for the LED_SW_BLINK enabled case X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=c964f331bed6a847b1557703d9af68c2c8d8b2c6;p=u-boot.git cmd: led: fix led command usage for the LED_SW_BLINK enabled case CONFIG_LED_BLINK and CONFIG_LED_SW_BLINK can be defined independently. Led blinking works if any (or both) of them is enabled. Unfortunately the led command help does not display blinking option if only CONFIG_LED_SW_BLINK is enabled. This is definitely wrong. This patch fix an issue. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass Acked-by: Alexander Dahl --- diff --git a/cmd/led.c b/cmd/led.c index 2f786f34c6..91fb856ee5 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 ""