]> git.sur5r.net Git - openocd/commitdiff
bitq_interface_t -> struct biq_interface
authorZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 12:08:19 +0000 (04:08 -0800)
committerZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 19:58:04 +0000 (11:58 -0800)
Remove useless typedef and redundant suffix.

src/jtag/bitq.c
src/jtag/bitq.h
src/jtag/presto.c

index 56cc31e4f64ff92a8ae008a7eb4e03426e620450..145324c7722ab420cf53cf9286dddcccbca0847a 100644 (file)
@@ -25,7 +25,7 @@
 #include "interface.h"
 
 
-bitq_interface_t* bitq_interface;       /* low level bit queue interface */
+struct bitq_interface* bitq_interface;       /* low level bit queue interface */
 
 /* state of input queue */
 struct bitq_state {
index d0774f1fe05cb82bfa2e44f876faa435a3e4e3fb..48b47db7a694956ab2d996e31033159a27fad17a 100644 (file)
 
 #include "commands.h"
 
-typedef struct bitq_interface_s
-{
-       /* functions enqueueing low level IO requests
-       */
+struct bitq_interface {
+       // function to enqueueing low level IO requests
        int (*out)(int tms, int tdi, int tdo_req);
        int (*flush)(void);
 
@@ -37,9 +35,9 @@ typedef struct bitq_interface_s
         */
        int (*in_rdy)(void);
        int (*in)(void);
-} bitq_interface_t;
+};
 
-extern bitq_interface_t *bitq_interface;
+extern struct bitq_interface *bitq_interface;
 
 int bitq_execute_queue(void);
 
index 8789bed254f1f8c611ceb9bb2f56e07c99062d46..b8703770b498a6c18952b0457adcef91a99c6634 100644 (file)
@@ -65,7 +65,7 @@ static int presto_bitq_reset(int trst, int srst);
 static int presto_bitq_in_rdy(void);
 static int presto_bitq_in(void);
 
-static bitq_interface_t presto_bitq =
+static struct bitq_interface presto_bitq =
 {
        .out = presto_bitq_out,
        .flush = presto_bitq_flush,