From: Zachary T Welch Date: Fri, 13 Nov 2009 12:08:19 +0000 (-0800) Subject: bitq_interface_t -> struct biq_interface X-Git-Tag: v0.4.0-rc1~788 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c20b779b891f9d0fd031880841b269fbe8582579;p=openocd bitq_interface_t -> struct biq_interface Remove useless typedef and redundant suffix. --- diff --git a/src/jtag/bitq.c b/src/jtag/bitq.c index 56cc31e4..145324c7 100644 --- a/src/jtag/bitq.c +++ b/src/jtag/bitq.c @@ -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 { diff --git a/src/jtag/bitq.h b/src/jtag/bitq.h index d0774f1f..48b47db7 100644 --- a/src/jtag/bitq.h +++ b/src/jtag/bitq.h @@ -22,10 +22,8 @@ #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); diff --git a/src/jtag/presto.c b/src/jtag/presto.c index 8789bed2..b8703770 100644 --- a/src/jtag/presto.c +++ b/src/jtag/presto.c @@ -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,