]> git.sur5r.net Git - openocd/commitdiff
bitfield_desc_t -> struct bitfield_desc
authorZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 16:43:51 +0000 (08:43 -0800)
committerZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 19:58:12 +0000 (11:58 -0800)
Remove misleading typedef and redundant suffix from struct bitfield_desc.

src/target/armv4_5.c
src/target/armv7a.c
src/target/register.h

index bde9e2222e6bc88b25b48db7687429b912d3268d..1c5db291afc680a98eb75dd5d53bd3c194e72c05 100644 (file)
@@ -32,7 +32,7 @@
 #include "binarybuffer.h"
 
 
-bitfield_desc_t armv4_5_psr_bitfield_desc[] =
+struct bitfield_desc armv4_5_psr_bitfield_desc[] =
 {
        {"M[4:0]", 5},
        {"T", 1},
index 582e2e0d49fe0209e737dab4b06eba7c8348992d..c4b4c9856166ce4e8d3bf5400132b85314717e31 100644 (file)
@@ -35,7 +35,7 @@
 #include <string.h>
 #include <unistd.h>
 
-bitfield_desc_t armv7a_psr_bitfield_desc[] =
+struct bitfield_desc armv7a_psr_bitfield_desc[] =
 {
        {"M[4:0]", 5},
        {"T", 1},
index 3af81cada3b63243cb4c15b3341367898093966f..bc40d1fa61d177b6ee0d5adc658391a7886a5339 100644 (file)
 
 struct target_s;
 
-typedef struct bitfield_desc_s
+struct bitfield_desc
 {
        char *name;
        int num_bits;
-} bitfield_desc_t;
+};
 
 typedef struct reg_s
 {
@@ -40,7 +40,7 @@ typedef struct reg_s
        int dirty;
        int valid;
        uint32_t size;
-       bitfield_desc_t *bitfield_desc;
+       struct bitfield_desc *bitfield_desc;
        int num_bitfields;
        void *arch_info;
        int arch_type;