diff options
author | Bill Richardson <wfrichar@chromium.org> | 2016-08-22 17:55:12 -0700 |
---|---|---|
committer | Bill Richardson <wfrichar@chromium.org> | 2016-08-24 16:30:10 +0000 |
commit | bb15561db56728b83ee7fe35e534da7577a7729d (patch) | |
tree | e586ee3b18c8fda464da38b42a06845f0d7f6786 /chip/lm4/clock.c | |
parent | f322e32a3ec052be3f0c226145448fed63aa7ef9 (diff) | |
download | chrome-ec-bb15561db56728b83ee7fe35e534da7577a7729d.tar.gz |
cleanup: DECLARE_CONSOLE_COMMAND only needs 4 args
Since pretty much always, we've declared console commands to take
a "longhelp" argument with detailed explanations of what the
command does. But since almost as long, we've never actually used
that argument for anything - we just silently throw it away in
the macro. There's only one command (usbchargemode) that even
thinks it defines that argument.
We're never going to use this, let's just get rid of it.
BUG=none
BRANCH=none
CQ-DEPEND=CL:*279060
CQ-DEPEND=CL:*279158
CQ-DEPEND=CL:*279037
TEST=make buildall; tested on Cr50 hardware
Everything builds. Since we never used this arg anyway, there had
better not be any difference in the result.
Change-Id: Id3f71a53d02e3dc625cfcc12aa71ecb50e35eb9f
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/374163
Reviewed-by: Myles Watson <mylesgw@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip/lm4/clock.c')
-rw-r--r-- | chip/lm4/clock.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/chip/lm4/clock.c b/chip/lm4/clock.c index b8029f5d27..bc4b865403 100644 --- a/chip/lm4/clock.c +++ b/chip/lm4/clock.c @@ -551,8 +551,7 @@ static int command_sleep(int argc, char **argv) } DECLARE_CONSOLE_COMMAND(sleep, command_sleep, "[level [clock] [sram pm] [flash pm]]", - "Drop into sleep", - NULL); + "Drop into sleep"); #endif /* CONFIG_CMD_SLEEP */ #ifdef CONFIG_CMD_PLL @@ -594,8 +593,7 @@ static int command_pll(int argc, char **argv) } DECLARE_CONSOLE_COMMAND(pll, command_pll, "[ on | off | <div> ]", - "Get/set PLL state", - NULL); + "Get/set PLL state"); #endif /* CONFIG_CMD_PLL */ @@ -681,8 +679,7 @@ static int command_clock_gating(int argc, char **argv) } DECLARE_CONSOLE_COMMAND(clockgates, command_clock_gating, "", - "Get state of the clock gating controls regs", - NULL); + "Get state of the clock gating controls regs"); #endif /* CONFIG_CMD_CLOCKGATES */ #ifdef CONFIG_LOW_POWER_IDLE @@ -705,8 +702,7 @@ static int command_idle_stats(int argc, char **argv) } DECLARE_CONSOLE_COMMAND(idlestats, command_idle_stats, "", - "Print last idle stats", - NULL); + "Print last idle stats"); /** * Configure deep sleep clock settings. @@ -753,7 +749,6 @@ DECLARE_CONSOLE_COMMAND(dsleep, command_dsleep, "allow deep sleep to auto-select using the low speed " "clock.\n" "Give a timeout value for the console in use timeout.\n" - "See also 'sleepmask'.", - NULL); + "See also 'sleepmask'."); #endif /* CONFIG_LOW_POWER_IDLE */ |