diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2021-11-17 22:44:21 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-11-23 11:04:26 +0000 |
commit | 43ea974555de9a5bd9870a18f9f8423f1c476ea5 (patch) | |
tree | c82c4fe518554f9e7fd58d5125a2408f938db69c | |
parent | b46cb18c91372bf32c0a946ce739884e4e42497c (diff) | |
download | riscv-openocd-43ea974555de9a5bd9870a18f9f8423f1c476ea5.zip riscv-openocd-43ea974555de9a5bd9870a18f9f8423f1c476ea5.tar.gz riscv-openocd-43ea974555de9a5bd9870a18f9f8423f1c476ea5.tar.bz2 |
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>
-rw-r--r-- | src/jtag/aice/aice_transport.c | 3 | ||||
-rw-r--r-- | src/jtag/hla/hla_transport.c | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/jtag/aice/aice_transport.c b/src/jtag/aice/aice_transport.c index c0088f5..2f2542e 100644 --- a/src/jtag/aice/aice_transport.c +++ b/src/jtag/aice/aice_transport.c @@ -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, diff --git a/src/jtag/hla/hla_transport.c b/src/jtag/hla/hla_transport.c index 684a52c..58dfe4b 100644 --- a/src/jtag/hla/hla_transport.c +++ b/src/jtag/hla/hla_transport.c @@ -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, |