summaryrefslogtreecommitdiff
path: root/cmd/mp.c
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2023-10-07 15:13:08 -0400
committerTom Rini <[email protected]>2023-10-16 10:24:58 -0400
commit3616218b5acea74011aea2d14aa1f6366f242849 (patch)
treeccf5fd9d448069e418752519909c8333d66ee0e0 /cmd/mp.c
parentdec5777fffcc6f9e97a20bc23fc7353b30b70ed5 (diff)
cmd: Convert existing long help messages to the new macro
- Generally we just drop the #ifdef CONFIG_SYS_LONGHELP and endif lines and use U_BOOT_LONGHELP to declare the same variable name as before - In a few places, either rename the variable to follow convention or introduce the variable as it was being done inline before. Signed-off-by: Tom Rini <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'cmd/mp.c')
-rw-r--r--cmd/mp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd/mp.c b/cmd/mp.c
index 8d14401b494..1b4373f2587 100644
--- a/cmd/mp.c
+++ b/cmd/mp.c
@@ -66,8 +66,7 @@ cpu_cmd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
return 0;
}
-#ifdef CONFIG_SYS_LONGHELP
-static char cpu_help_text[] =
+U_BOOT_LONGHELP(cpu,
"<num> reset - Reset cpu <num>\n"
"cpu status - Status of all cpus\n"
"cpu <num> status - Status of cpu <num>\n"
@@ -86,8 +85,7 @@ static char cpu_help_text[] =
" When cpu <num> is released r4 and r5 = 0.\n" \
" r7 will contain the size of the initial mapped area"
#endif
- "";
-#endif
+ );
U_BOOT_CMD(
cpu, CONFIG_SYS_MAXARGS, 1, cpu_cmd,