openocd: declare struct command_registration in a single line 18/6718/2
authorAntonio Borneo <borneo.antonio@gmail.com>
Wed, 17 Nov 2021 21:44:21 +0000 (22:44 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Tue, 23 Nov 2021 11:04:26 +0000 (11:04 +0000)
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>
src/jtag/aice/aice_transport.c
src/jtag/hla/hla_transport.c

index c0088f5a4d6933487cf9b9ad82644a91aabc7245..2f2542e532d02063678dd281bbaf89e9b2073787 100644 (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,
        {
                .name = "init",
                .mode = COMMAND_ANY,
index 684a52cb925d56c7ecfde6f29c6d2671d1514649..58dfe4b6366d3f56106c2ebc2a58734fca3bc4d4 100644 (file)
@@ -45,8 +45,7 @@ COMMAND_HANDLER(hl_transport_reset_command)
        return hl_interface_init_reset();
 }
 
        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,
        {
         .name = "newdap",
         .mode = COMMAND_CONFIG,
@@ -67,8 +66,7 @@ static const struct command_registration hl_swd_transport_command_handlers[] = {
        COMMAND_REGISTRATION_DONE
 };
 
        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,
        {
         .name = "newtap",
         .mode = COMMAND_CONFIG,

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)