From: Antonio Borneo Date: Wed, 17 Nov 2021 21:44:21 +0000 (+0100) Subject: openocd: declare struct command_registration in a single line X-Git-Tag: v0.12.0-rc1~406 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=43ea974555de9a5bd9870a18f9f8423f1c476ea5 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 Reviewed-on: https://review.openocd.org/c/openocd/+/6718 Tested-by: jenkins Reviewed-by: Tomas Vanek --- diff --git a/src/jtag/aice/aice_transport.c b/src/jtag/aice/aice_transport.c index c0088f5a4d..2f2542e532 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 684a52cb92..58dfe4b636 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,