openocd: declare struct command_registration in a single line

To simplify scripts to compare documentation and registered
commands.

Change-Id: I3bed5ba80ea8be1fd615697e80d66b42d7b45fd1
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6718
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
Antonio Borneo 2021-11-17 22:44:21 +01:00
parent b46cb18c91
commit 43ea974555
2 changed files with 3 additions and 6 deletions

View File

@ -284,8 +284,7 @@ static int jim_aice_names(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
}
/* */
static const struct command_registration
aice_transport_jtag_subcommand_handlers[] = {
static const struct command_registration aice_transport_jtag_subcommand_handlers[] = {
{
.name = "init",
.mode = COMMAND_ANY,

View File

@ -45,8 +45,7 @@ COMMAND_HANDLER(hl_transport_reset_command)
return hl_interface_init_reset();
}
static const struct command_registration
hl_swd_transport_subcommand_handlers[] = {
static const struct command_registration hl_swd_transport_subcommand_handlers[] = {
{
.name = "newdap",
.mode = COMMAND_CONFIG,
@ -67,8 +66,7 @@ static const struct command_registration hl_swd_transport_command_handlers[] = {
COMMAND_REGISTRATION_DONE
};
static const struct command_registration
hl_transport_jtag_subcommand_handlers[] = {
static const struct command_registration hl_transport_jtag_subcommand_handlers[] = {
{
.name = "newtap",
.mode = COMMAND_CONFIG,