mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-11 15:34:55 +00:00
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 <mikhail.kshevetskiy@iopsys.eu> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Alexander Dahl <ada@thorsis.com>
This commit is contained in:
parent
3d7f194597
commit
c964f331be
1 changed files with 1 additions and 1 deletions
|
@ -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 ""
|
||||
|
|
Loading…
Add table
Reference in a new issue