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

src/jtag/commands.h
src/jtag/driver.c

index d13a9ab448f7c0fab27c220159b7acefab132625..858f7aad5011529ad36682ea59e286573a7039c7 100644 (file)
@@ -57,11 +57,10 @@ struct scan_command {
        tap_state_t end_state;
 };
 
-typedef struct statemove_command_s
-{
+struct statemove_command {
        /// state in which JTAG commands should finish
        tap_state_t end_state;
-} statemove_command_t;
+};
 
 typedef struct pathmove_command_s
 {
@@ -114,7 +113,7 @@ typedef struct sleep_command_s
 typedef union jtag_command_container_u
 {
        struct scan_command*         scan;
-       statemove_command_t*    statemove;
+       struct statemove_command*    statemove;
        pathmove_command_t*     pathmove;
        runtest_command_t*      runtest;
        stableclocks_command_t* stableclocks;
index d50ae9055ed2e0367592200b08096271bb2da1d1..6f205734903e42ba5ae2c1993f670f6395a4cb1e 100644 (file)
@@ -377,7 +377,7 @@ int interface_jtag_add_tlr(void)
 
        cmd->type = JTAG_STATEMOVE;
 
-       cmd->cmd.statemove = cmd_queue_alloc(sizeof(statemove_command_t));
+       cmd->cmd.statemove = cmd_queue_alloc(sizeof(struct statemove_command));
        cmd->cmd.statemove->end_state = state;
 
        return ERROR_OK;