From: OpenOCD-Gerrit <ope...@us...> - 2021-11-23 11:04:54
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via facbb481b806275208baca30debfd66d54bc4f9b (commit) via 43ea974555de9a5bd9870a18f9f8423f1c476ea5 (commit) from b46cb18c91372bf32c0a946ce739884e4e42497c (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit facbb481b806275208baca30debfd66d54bc4f9b Author: Antonio Borneo <bor...@gm...> Date: Thu Nov 18 00:25:37 2021 +0100 flash/rp2040: don't initialize to NULL fields in struct When a struct is initialized, missing fields are already filled with zero or NULL. This change simplifies scripts to compare documentation and registered commands. Change-Id: I96fbdfa98bbb1f2b5e2a9532faf5a15cb5bc28dd Signed-off-by: Antonio Borneo <bor...@gm...> Reviewed-on: https://review.openocd.org/c/openocd/+/6719 Tested-by: jenkins Reviewed-by: Tomas Vanek <va...@fb...> diff --git a/src/flash/nor/rp2040.c b/src/flash/nor/rp2040.c index 5b4c16bb9..fb34172d2 100644 --- a/src/flash/nor/rp2040.c +++ b/src/flash/nor/rp2040.c @@ -441,7 +441,6 @@ FLASH_BANK_COMMAND_HANDLER(rp2040_flash_bank_command) struct flash_driver rp2040_flash = { .name = "rp2040_flash", - .commands = NULL, .flash_bank_command = rp2040_flash_bank_command, .erase = rp2040_flash_erase, .write = rp2040_flash_write, commit 43ea974555de9a5bd9870a18f9f8423f1c476ea5 Author: Antonio Borneo <bor...@gm...> Date: Wed Nov 17 22:44:21 2021 +0100 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 <bor...@gm...> Reviewed-on: https://review.openocd.org/c/openocd/+/6718 Tested-by: jenkins Reviewed-by: Tomas Vanek <va...@fb...> diff --git a/src/jtag/aice/aice_transport.c b/src/jtag/aice/aice_transport.c index c0088f5a4..2f2542e53 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 684a52cb9..58dfe4b63 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, ----------------------------------------------------------------------- Summary of changes: src/flash/nor/rp2040.c | 1 - src/jtag/aice/aice_transport.c | 3 +-- src/jtag/hla/hla_transport.c | 6 ++---- 3 files changed, 3 insertions(+), 7 deletions(-) hooks/post-receive -- Main OpenOCD repository |