bitbang_interface_t -> struct bitbang_interface
authorZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 12:10:56 +0000 (04:10 -0800)
committerZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 19:58:04 +0000 (11:58 -0800)
Removes another useless typedef and suffix.

src/jtag/at91rm9200.c
src/jtag/bitbang.c
src/jtag/bitbang.h
src/jtag/dummy.c
src/jtag/ep93xx.c
src/jtag/parport.c

index d5dfbeddf1859787f05cfd5d19999dabf2caabf4..52869a3e53efb42a6786aa840a84bc6fc2f30974 100644 (file)
@@ -134,7 +134,7 @@ jtag_interface_t at91rm9200_interface =
        .quit = at91rm9200_quit,
 };
 
-static bitbang_interface_t at91rm9200_bitbang =
+static struct bitbang_interface at91rm9200_bitbang =
 {
        .read = at91rm9200_read,
        .write = at91rm9200_write,
index 96b4daf346767e2c87c53ad044cc9b2a1bc84a0b..d62a5cd3bebcfccf461fe2ac7f3c45c96511654e 100644 (file)
@@ -39,7 +39,7 @@
 static void bitbang_stableclocks(int num_cycles);
 
 
-bitbang_interface_t *bitbang_interface;
+struct bitbang_interface *bitbang_interface;
 
 /* DANGER!!!! clock absolutely *MUST* be 0 in idle or reset won't work!
  *
index 060b689d3f9984590adf3405c8eed28db2bf433d..db5c4cb865c703ff48cea16cb45510a49c44e7a3 100644 (file)
 #ifndef BITBANG_H
 #define BITBANG_H
 
-typedef struct bitbang_interface_s
-{
+struct bitbang_interface {
        /* low level callbacks (for bitbang)
         */
        int (*read)(void);
        void (*write)(int tck, int tms, int tdi);
        void (*reset)(int trst, int srst);
        void (*blink)(int on);
-} bitbang_interface_t;
-
-extern bitbang_interface_t *bitbang_interface;
+};
 
 int bitbang_execute_queue(void);
 
+extern struct bitbang_interface *bitbang_interface;
+
 #endif /* BITBANG_H */
index e840da2d1f85ea8f2fecce619fd0b4b8bde0292e..5fc9251f9a38118221ac2783020ed8d2f37bd1e8 100644 (file)
@@ -66,7 +66,7 @@ static void dummy_write(int tck, int tms, int tdi);
 static void dummy_reset(int trst, int srst);
 static void dummy_led(int on);
 
-static bitbang_interface_t dummy_bitbang =
+static struct bitbang_interface dummy_bitbang =
 {
        .read = dummy_read,
        .write = dummy_write,
index d380e5ffa42d375da0123f3bf17cda52fa09917a..50e2ad3f55ab82435c46b3c653456a505f4bfa95 100644 (file)
@@ -65,7 +65,7 @@ jtag_interface_t ep93xx_interface =
        .quit = ep93xx_quit,
 };
 
-static bitbang_interface_t ep93xx_bitbang =
+static struct bitbang_interface ep93xx_bitbang =
 {
        .read = ep93xx_read,
        .write = ep93xx_write,
index a18b3f6afc1f5419f760bcafeea1d29f8d4a1994..8906970dcafe8a45c8d154813b62d53442adba42 100644 (file)
@@ -255,7 +255,7 @@ static int parport_get_giveio_access(void)
 }
 #endif
 
-static bitbang_interface_t parport_bitbang = {
+static struct bitbang_interface parport_bitbang = {
                .read = &parport_read,
                .write = &parport_write,
                .reset = &parport_reset,