Skip to content
Snippets Groups Projects
Commit 21c34084 authored by Simon Glass's avatar Simon Glass
Browse files

led: Mark existing driver as legacy


The existing 'led' command does not support driver model. Rename it to
indicate that it is legacy code.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarZiping Chen <techping.chan@gmail.com>
parent 53378dac
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ obj-$(CONFIG_CMD_ITEST) += itest.o
obj-$(CONFIG_CMD_JFFS2) += jffs2.o
obj-$(CONFIG_CMD_CRAMFS) += cramfs.o
obj-$(CONFIG_CMD_LDRINFO) += ldrinfo.o
obj-$(CONFIG_LED_STATUS_CMD) += led.o
obj-$(CONFIG_LED_STATUS_CMD) += legacy_led.o
obj-$(CONFIG_CMD_LICENSE) += license.o
obj-y += load.o
obj-$(CONFIG_LOGBUFFER) += log.o
......
......@@ -86,7 +86,7 @@ void __weak __led_blink(led_id_t mask, int freq)
{
}
int do_led (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
int do_legacy_led(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
int i, match = 0;
enum led_cmd cmd;
......@@ -148,7 +148,7 @@ int do_led (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
}
U_BOOT_CMD(
led, 4, 1, do_led,
led, 4, 1, do_legacy_led,
"["
#ifdef CONFIG_LED_STATUS_BOARD_SPECIFIC
#ifdef CONFIG_LED_STATUS0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment