]> git.sur5r.net Git - openocd/commitdiff
pathmove_command_t -> struct pathmove_command
authorZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 13:54:16 +0000 (05:54 -0800)
committerZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 19:58:05 +0000 (11:58 -0800)
Remove misleading typedef from struct pathmove_command.

src/jtag/bitbang.c
src/jtag/bitq.c
src/jtag/commands.h
src/jtag/driver.c
src/jtag/gw16012.c
src/jtag/rlink/rlink.c
src/jtag/usbprog.c

index d62a5cd3bebcfccf461fe2ac7f3c45c96511654e..7c02628f5832e48bf194b4cdc622fd2228754ffa 100644 (file)
@@ -91,7 +91,7 @@ static void bitbang_state_move(int skip)
        tap_set_state(tap_get_end_state());
 }
 
-static void bitbang_path_move(pathmove_command_t *cmd)
+static void bitbang_path_move(struct pathmove_command *cmd)
 {
        int num_states = cmd->num_states;
        int state_count;
index ee7a073abbd9e066fd35f60dadfd0295761163b1..1c00228a122a1863c94c95dda7b83434ace48390 100644 (file)
@@ -178,7 +178,7 @@ void bitq_state_move(tap_state_t new_state)
 }
 
 
-void bitq_path_move(pathmove_command_t* cmd)
+void bitq_path_move(struct pathmove_command* cmd)
 {
        int i;
 
index 858f7aad5011529ad36682ea59e286573a7039c7..f5793de5f0f5d171de2198213e4a9baeef245099 100644 (file)
@@ -62,13 +62,12 @@ struct statemove_command {
        tap_state_t end_state;
 };
 
-typedef struct pathmove_command_s
-{
+struct pathmove_command {
        /// number of states in *path
        int num_states;
        /// states that have to be passed
        tap_state_t* path;
-} pathmove_command_t;
+};
 
 typedef struct runtest_command_s
 {
@@ -114,7 +113,7 @@ typedef union jtag_command_container_u
 {
        struct scan_command*         scan;
        struct statemove_command*    statemove;
-       pathmove_command_t*     pathmove;
+       struct pathmove_command*     pathmove;
        runtest_command_t*      runtest;
        stableclocks_command_t* stableclocks;
        reset_command_t*        reset;
index 6f205734903e42ba5ae2c1993f670f6395a4cb1e..83ac56c40aed7fe07644b88f411baa3cb99a453c 100644 (file)
@@ -392,7 +392,7 @@ int interface_jtag_add_pathmove(int num_states, const tap_state_t *path)
 
        cmd->type = JTAG_PATHMOVE;
 
-       cmd->cmd.pathmove = cmd_queue_alloc(sizeof(pathmove_command_t));
+       cmd->cmd.pathmove = cmd_queue_alloc(sizeof(struct pathmove_command));
        cmd->cmd.pathmove->num_states = num_states;
        cmd->cmd.pathmove->path = cmd_queue_alloc(sizeof(tap_state_t) * num_states);
 
index dfc07be2ae39a8447b889b52556c6460804e1724..eb47187f56329432f74eeab7592f5aff8e904697 100644 (file)
@@ -183,7 +183,7 @@ static void gw16012_state_move(void)
        tap_set_state(tap_get_end_state());
 }
 
-static void gw16012_path_move(pathmove_command_t *cmd)
+static void gw16012_path_move(struct pathmove_command *cmd)
 {
        int num_states = cmd->num_states;
        int state_count;
index db91698e72309f75b15beb1d2133294d333ac126..bc354575b67b89af54d8d1f6cc3bda441f9c96e6 100644 (file)
@@ -929,7 +929,7 @@ void rlink_state_move(void) {
 }
 
 static
-void rlink_path_move(pathmove_command_t *cmd)
+void rlink_path_move(struct pathmove_command *cmd)
 {
        int num_states = cmd->num_states;
        int state_count;
index 06a9673f96df6ecee89ddf24ff306ef84dd0dd90..9eda6e08cffccdd4850e78d1c596a2ed6bffc520 100644 (file)
@@ -57,7 +57,7 @@ static int usbprog_quit(void);
 
 static void usbprog_end_state(tap_state_t state);
 static void usbprog_state_move(void);
-static void usbprog_path_move(pathmove_command_t *cmd);
+static void usbprog_path_move(struct pathmove_command *cmd);
 static void usbprog_runtest(int num_cycles);
 static void usbprog_scan(bool ir_scan, enum scan_type type, uint8_t *buffer, int scan_size);
 
@@ -249,7 +249,7 @@ static void usbprog_state_move(void)
        tap_set_state(tap_get_end_state());
 }
 
-static void usbprog_path_move(pathmove_command_t *cmd)
+static void usbprog_path_move(struct pathmove_command *cmd)
 {
        int num_states = cmd->num_states;
        int state_count;