stableclocks_command_t -> struct stableclocks_command
authorZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 13:56:26 +0000 (05:56 -0800)
committerZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 19:58:05 +0000 (11:58 -0800)
Remove misleading typedef from struct stableclocks_command.

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

index f43a4149b299c4939962b4ca940b6dec6d96878b..509ca5aadb0ab7fdb286588183c3e5e002f3cce6 100644 (file)
@@ -77,11 +77,10 @@ struct runtest_command {
 };
 
 
-typedef struct stableclocks_command_s
-{
+struct stableclocks_command {
        /// number of clock cycles that should be sent
        int num_cycles;
-} stableclocks_command_t;
+};
 
 
 typedef struct reset_command_s
@@ -114,7 +113,7 @@ typedef union jtag_command_container_u
        struct statemove_command*    statemove;
        struct pathmove_command*     pathmove;
        struct runtest_command*      runtest;
-       stableclocks_command_t* stableclocks;
+       struct stableclocks_command* stableclocks;
        reset_command_t*        reset;
        end_state_command_t*    end_state;
        sleep_command_t* sleep;
index 71cde0ec9848e2a46f598b2de941736d5c8e3bc2..1f28d183ab70044e5b4816bde6594f3113d7bc0a 100644 (file)
@@ -427,7 +427,7 @@ int interface_jtag_add_clocks(int num_cycles)
 
        cmd->type = JTAG_STABLECLOCKS;
 
-       cmd->cmd.stableclocks = cmd_queue_alloc(sizeof(stableclocks_command_t));
+       cmd->cmd.stableclocks = cmd_queue_alloc(sizeof(struct stableclocks_command));
        cmd->cmd.stableclocks->num_cycles = num_cycles;
 
        return ERROR_OK;