]> git.sur5r.net Git - openocd/commitdiff
JTAG/drivers: cleanup jtag_interface structs
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 3 Jan 2010 21:07:18 +0000 (13:07 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 3 Jan 2010 21:07:18 +0000 (13:07 -0800)
Get rid of excess indents.
Ditto superfluous "&" before function pointers.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
src/jtag/drivers/arm-jtag-ew.c
src/jtag/drivers/ft2232.c
src/jtag/drivers/gw16012.c
src/jtag/drivers/jlink.c
src/jtag/drivers/parport.c
src/jtag/drivers/presto.c
src/jtag/drivers/usbprog.c
src/jtag/drivers/vsllink.c

index 622101160305519ea976a531e1cbd51723f42440..e54c8c6146b5af22bb44778ceba986a5e5b9d8c8 100644 (file)
@@ -513,17 +513,15 @@ static const struct command_registration armjtagew_command_handlers[] = {
 };
 
 struct jtag_interface armjtagew_interface = {
-               .name = "arm-jtag-ew",
-
-               .commands = armjtagew_command_handlers,
-
-               .execute_queue = &armjtagew_execute_queue,
-               .speed = &armjtagew_speed,
-               .khz = &armjtagew_khz,
-
-               .init = &armjtagew_init,
-               .quit = &armjtagew_quit,
-       };
+       .name = "arm-jtag-ew",
+       .commands = armjtagew_command_handlers,
+
+       .execute_queue = armjtagew_execute_queue,
+       .speed = armjtagew_speed,
+       .khz = armjtagew_khz,
+       .init = armjtagew_init,
+       .quit = armjtagew_quit,
+};
 
 /***************************************************************************/
 /* ARM-JTAG-EW tap functions */
index 06fc2523c56e2a95b2752d94b758652786863b3b..a3ac142b24fee61f55a39ff905cb5f8e62f8b6f4 100644 (file)
@@ -4018,12 +4018,13 @@ static const struct command_registration ft2232_command_handlers[] = {
 };
 
 struct jtag_interface ft2232_interface = {
-               .name = "ft2232",
-               .commands = ft2232_command_handlers,
-               .init = &ft2232_init,
-               .quit = &ft2232_quit,
-               .speed = &ft2232_speed,
-               .speed_div = &ft2232_speed_div,
-               .khz = &ft2232_khz,
-               .execute_queue = &ft2232_execute_queue,
-       };
+       .name = "ft2232",
+       .commands = ft2232_command_handlers,
+
+       .init = ft2232_init,
+       .quit = ft2232_quit,
+       .speed = ft2232_speed,
+       .speed_div = ft2232_speed_div,
+       .khz = ft2232_khz,
+       .execute_queue = ft2232_execute_queue,
+};
index 9083e925f074a4a999c06385bc6b92a2143f2b9c..38e5dd725533b72957472971f45b70490453f0d1 100644 (file)
@@ -574,10 +574,11 @@ static const struct command_registration gw16012_command_handlers[] = {
 };
 
 struct jtag_interface gw16012_interface = {
-               .name = "gw16012",
-               .commands = gw16012_command_handlers,
-               .init = &gw16012_init,
-               .quit = &gw16012_quit,
-               .speed = &gw16012_speed,
-               .execute_queue = &gw16012_execute_queue,
-       };
+       .name = "gw16012",
+       .commands = gw16012_command_handlers,
+
+       .init = gw16012_init,
+       .quit = gw16012_quit,
+       .speed = gw16012_speed,
+       .execute_queue = gw16012_execute_queue,
+};
index 4ca4349063f05c173a4af8fa57684a35c81134a8..6596849ec7436bb910c12a9a64da4ca39482f8bb 100644 (file)
@@ -645,18 +645,16 @@ static const struct command_registration jlink_command_handlers[] = {
 };
 
 struct jtag_interface jlink_interface = {
-               .name = "jlink",
-
-               .commands = jlink_command_handlers,
-
-               .execute_queue = &jlink_execute_queue,
-               .speed = &jlink_speed,
-               .speed_div = &jlink_speed_div,
-               .khz = &jlink_khz,
-
-               .init = &jlink_init,
-               .quit = &jlink_quit,
-       };
+       .name = "jlink",
+       .commands = jlink_command_handlers,
+
+       .execute_queue = jlink_execute_queue,
+       .speed = jlink_speed,
+       .speed_div = jlink_speed_div,
+       .khz = jlink_khz,
+       .init = jlink_init,
+       .quit = jlink_quit,
+};
 
 /***************************************************************************/
 /* J-Link tap functions */
index 04ac2728064b8ba9a21c53c33336a9eb1411562b..2e6b9ed511211b1307ccd3e975fcee627bb16e67 100644 (file)
@@ -517,16 +517,13 @@ static const struct command_registration parport_command_handlers[] = {
 };
 
 struct jtag_interface parport_interface = {
-               .name = "parport",
-
-               .commands = parport_command_handlers,
-
-               .init = &parport_init,
-               .quit = &parport_quit,
-
-               .khz = &parport_khz,
-               .speed_div = &parport_speed_div,
-               .speed = &parport_speed,
-
-               .execute_queue = &bitbang_execute_queue,
-       };
+       .name = "parport",
+       .commands = parport_command_handlers,
+
+       .init = parport_init,
+       .quit = parport_quit,
+       .khz = parport_khz,
+       .speed_div = parport_speed_div,
+       .speed = parport_speed,
+       .execute_queue = bitbang_execute_queue,
+};
index fac5e8239ba519822c0c81794840ba67e472b68e..0baf561ede774c9dbd39879857df8466117806e5 100644 (file)
@@ -786,15 +786,13 @@ static int presto_jtag_quit(void)
 }
 
 struct jtag_interface presto_interface = {
-               .name = "presto",
-
-               .commands = presto_command_handlers,
-
-               .execute_queue = &bitq_execute_queue,
-               .speed = &presto_jtag_speed,
-               .khz = &presto_jtag_khz,
-               .speed_div = &presto_jtag_speed_div,
-
-               .init = &presto_jtag_init,
-               .quit = &presto_jtag_quit,
-       };
+       .name = "presto",
+       .commands = presto_command_handlers,
+
+       .execute_queue = bitq_execute_queue,
+       .speed = presto_jtag_speed,
+       .khz = presto_jtag_khz,
+       .speed_div = presto_jtag_speed_div,
+       .init = presto_jtag_init,
+       .quit = presto_jtag_quit,
+};
index f6d8a97289454b6b1abe1311d08d97fac10e8638..0d51b27f84a347ec7b4fe945cbe5821471075203 100644 (file)
@@ -652,9 +652,10 @@ static void usbprog_jtag_tms_send(struct usbprog_jtag *usbprog_jtag)
 }
 
 struct jtag_interface usbprog_interface = {
-               .name = "usbprog",
-               .execute_queue = &usbprog_execute_queue,
-               .speed = &usbprog_speed,
-               .init = &usbprog_init,
-               .quit = &usbprog_quit
-       };
+       .name = "usbprog",
+
+       .execute_queue = usbprog_execute_queue,
+       .speed = usbprog_speed,
+       .init = usbprog_init,
+       .quit = usbprog_quit
+};
index bbbb5f94cd0b83a601d6982394f05ae98c322462..d3012906b291c85a605bfd4ac1225a5d453e0299 100644 (file)
@@ -1891,13 +1891,13 @@ static const struct command_registration vsllink_command_handlers[] = {
 };
 
 struct jtag_interface vsllink_interface = {
-               .name = "vsllink",
-               .commands = vsllink_command_handlers,
-
-               .init = &vsllink_init,
-               .quit = &vsllink_quit,
-               .khz = &vsllink_khz,
-               .speed = &vsllink_speed,
-               .speed_div = &vsllink_speed_div,
-               .execute_queue = &vsllink_execute_queue,
-       };
+       .name = "vsllink",
+       .commands = vsllink_command_handlers,
+
+       .init = vsllink_init,
+       .quit = vsllink_quit,
+       .khz = vsllink_khz,
+       .speed = vsllink_speed,
+       .speed_div = vsllink_speed_div,
+       .execute_queue = vsllink_execute_queue,
+};