diff options
author | Simon Glass <sjg@chromium.org> | 2017-04-10 11:34:58 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-04-14 19:38:57 -0600 |
commit | 21c340849dc551fd49a17633a090fd1d52d75049 (patch) | |
tree | 53c9b7f18f3909fc8a230f0ca56400f133d69726 /cmd/legacy_led.c | |
parent | 53378dac8dc33e3fd5f07d60bd7a5f8258ac7a20 (diff) |
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: Simon Glass <sjg@chromium.org>
Reviewed-by: Ziping Chen <techping.chan@gmail.com>
Diffstat (limited to 'cmd/legacy_led.c')
-rw-r--r-- | cmd/legacy_led.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/legacy_led.c b/cmd/legacy_led.c index 951a5e242f2..1ec2e43e50d 100644 --- a/cmd/legacy_led.c +++ b/cmd/legacy_led.c @@ -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 |