Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Unified Diff: platform/power.c

Issue 1348403002: Consistently use the STATIC_COMMAND macro every time we define a console command. (Closed) Base URL: https://github.com/travisg/lk.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « platform/omap3/i2c.c ('k') | platform/zynq/gpio.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: platform/power.c
diff --git a/platform/power.c b/platform/power.c
index ecb74457a92783bed0ecfb349d151bb1b31c8f1e..d4cc8f01d1f8d45828fb5d8b8a91b81908e63ac6 100644
--- a/platform/power.c
+++ b/platform/power.c
@@ -57,8 +57,8 @@ static int cmd_poweroff(int argc, const cmd_args *argv)
STATIC_COMMAND_START
#if LK_DEBUGLEVEL > 1
- { "reboot", "soft reset", &cmd_reboot },
- { "poweroff", "powerdown", &cmd_poweroff },
+STATIC_COMMAND("reboot", "soft reset", &cmd_reboot)
+STATIC_COMMAND("poweroff", "powerdown", &cmd_poweroff)
#endif
STATIC_COMMAND_END(platform_power);
« no previous file with comments | « platform/omap3/i2c.c ('k') | platform/zynq/gpio.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698