mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
cmd: Make use of U_BOOT_LONGHELP when missing
After adding the U_BOOT_LONGHELP macro some new commands came in still that were not making use if it. Switch these cases over and in a few places add missing newlines as well. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -152,11 +152,11 @@ static int do_adc_scan(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
return CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
static char adc_help_text[] =
|
||||
U_BOOT_LONGHELP(adc,
|
||||
"list - list ADC devices\n"
|
||||
"adc info <name> - Get ADC device info\n"
|
||||
"adc single <name> <channel> [varname] - Get Single data of ADC device channel\n"
|
||||
"adc scan <name> [channel mask] - Scan all [or masked] ADC channels";
|
||||
"adc scan <name> [channel mask] - Scan all [or masked] ADC channels\n");
|
||||
|
||||
U_BOOT_CMD_WITH_SUBCMDS(adc, "ADC sub-system", adc_help_text,
|
||||
U_BOOT_SUBCMD_MKENT(list, 1, 1, do_adc_list),
|
||||
|
||||
@@ -49,12 +49,11 @@ static struct cmd_tbl cmd_sub[] = {
|
||||
"", ""),
|
||||
};
|
||||
|
||||
static char exception_help_text[] =
|
||||
U_BOOT_LONGHELP(exception,
|
||||
"<ex>\n"
|
||||
" The following exceptions are available:\n"
|
||||
" breakpoint - prefetch abort\n"
|
||||
" unaligned - data abort\n"
|
||||
" undefined - undefined instruction\n"
|
||||
;
|
||||
" undefined - undefined instruction\n");
|
||||
|
||||
#include <exception.h>
|
||||
|
||||
@@ -77,12 +77,11 @@ static struct cmd_tbl cmd_sub[] = {
|
||||
"", ""),
|
||||
};
|
||||
|
||||
static char exception_help_text[] =
|
||||
U_BOOT_LONGHELP(exception,
|
||||
"<ex>\n"
|
||||
" The following exceptions are available:\n"
|
||||
" breakpoint - breakpoint instruction exception\n"
|
||||
" unaligned - unaligned LDAR data abort\n"
|
||||
" undefined - undefined instruction exception\n"
|
||||
;
|
||||
" undefined - undefined instruction exception\n");
|
||||
|
||||
#include <exception.h>
|
||||
|
||||
@@ -99,7 +99,7 @@ static int do_blob(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
}
|
||||
|
||||
/***************************************************/
|
||||
static char blob_help_text[] =
|
||||
U_BOOT_LONGHELP(blob,
|
||||
"enc src dst len km - Encapsulate and create blob of data\n"
|
||||
" $len bytes long at address $src and\n"
|
||||
" store the result at address $dst.\n"
|
||||
@@ -115,7 +115,7 @@ static char blob_help_text[] =
|
||||
" modifier is stored.\n"
|
||||
" The modifier is required for generation\n"
|
||||
" /use as key for cryptographic operation.\n"
|
||||
" Key modifier should be 16 byte long.\n";
|
||||
" Key modifier should be 16 byte long.\n");
|
||||
|
||||
U_BOOT_CMD(
|
||||
blob, 6, 1, do_blob,
|
||||
|
||||
@@ -118,16 +118,11 @@ static int do_cli(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
return CMD_RET_USAGE;
|
||||
}
|
||||
|
||||
#if CONFIG_IS_ENABLED(SYS_LONGHELP)
|
||||
static char cli_help_text[] =
|
||||
U_BOOT_LONGHELP(cli,
|
||||
"get - print current cli\n"
|
||||
"set - set the current cli, possible value are: old, modern"
|
||||
;
|
||||
#endif
|
||||
"set - set the current cli, possible value are: old, modern\n");
|
||||
|
||||
U_BOOT_CMD(cli, 3, 1, do_cli,
|
||||
"cli",
|
||||
#if CONFIG_IS_ENABLED(SYS_LONGHELP)
|
||||
cli_help_text
|
||||
#endif
|
||||
);
|
||||
|
||||
@@ -68,14 +68,13 @@ static struct cmd_tbl cmd_sub[] = {
|
||||
"", ""),
|
||||
};
|
||||
|
||||
static char exception_help_text[] =
|
||||
U_BOOT_LONGHELP(exception,
|
||||
"<ex>\n"
|
||||
" The following exceptions are available:\n"
|
||||
" compressed - compressed instruction\n"
|
||||
" ebreak - breakpoint\n"
|
||||
" ialign16 - 16 bit aligned instruction\n"
|
||||
" undefined - illegal instruction\n"
|
||||
" unaligned - load address misaligned\n"
|
||||
;
|
||||
" unaligned - load address misaligned\n");
|
||||
|
||||
#include <exception.h>
|
||||
|
||||
@@ -369,7 +369,7 @@ static int do_scmi(struct cmd_tbl *cmdtp, int flag,
|
||||
return cp->cmd(cmdtp, flag, argc, argv);
|
||||
}
|
||||
|
||||
static char scmi_help_text[] =
|
||||
U_BOOT_LONGHELP(scmi,
|
||||
" - SCMI utility\n"
|
||||
" info - get the info of SCMI services\n"
|
||||
" perm_dev <agent-id in hex> <device-id in hex> <flags in hex>\n"
|
||||
@@ -377,8 +377,7 @@ static char scmi_help_text[] =
|
||||
" perm_proto <agent-id in hex> <device-id in hex> <protocol-id in hex> <flags in hex>\n"
|
||||
" - set protocol permission to device\n"
|
||||
" reset <agent-id in hex> <flags in hex>\n"
|
||||
" - reset platform resource settings\n"
|
||||
"";
|
||||
" - reset platform resource settings\n");
|
||||
|
||||
U_BOOT_CMD(scmi, CONFIG_SYS_MAXARGS, 0, do_scmi, "SCMI utility",
|
||||
scmi_help_text);
|
||||
|
||||
@@ -19,10 +19,9 @@ static struct cmd_tbl cmd_sub[] = {
|
||||
"", ""),
|
||||
};
|
||||
|
||||
static char exception_help_text[] =
|
||||
U_BOOT_LONGHELP(exception,
|
||||
"<ex>\n"
|
||||
" The following exceptions are available:\n"
|
||||
" undefined - undefined instruction\n"
|
||||
;
|
||||
" undefined - undefined instruction\n");
|
||||
|
||||
#include <exception.h>
|
||||
|
||||
Reference in New Issue
Block a user