diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 08:43:51 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:12 -0800 |
commit | de3fb2f3bce2de5be44223204ce368216ed85b0f (patch) | |
tree | 58d925d5db44fd81be6a9f042fa57d8097506b2b /src/target | |
parent | f4e03e3b902104f5cf8aab1ea3cd5db2bb36890e (diff) | |
download | openocd_libswd-de3fb2f3bce2de5be44223204ce368216ed85b0f.tar.gz openocd_libswd-de3fb2f3bce2de5be44223204ce368216ed85b0f.tar.bz2 openocd_libswd-de3fb2f3bce2de5be44223204ce368216ed85b0f.tar.xz openocd_libswd-de3fb2f3bce2de5be44223204ce368216ed85b0f.zip |
bitfield_desc_t -> struct bitfield_desc
Remove misleading typedef and redundant suffix from struct bitfield_desc.
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/armv4_5.c | 2 | ||||
-rw-r--r-- | src/target/armv7a.c | 2 | ||||
-rw-r--r-- | src/target/register.h | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/target/armv4_5.c b/src/target/armv4_5.c index bde9e222..1c5db291 100644 --- a/src/target/armv4_5.c +++ b/src/target/armv4_5.c @@ -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}, diff --git a/src/target/armv7a.c b/src/target/armv7a.c index 582e2e0d..c4b4c985 100644 --- a/src/target/armv7a.c +++ b/src/target/armv7a.c @@ -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}, diff --git a/src/target/register.h b/src/target/register.h index 3af81cad..bc40d1fa 100644 --- a/src/target/register.h +++ b/src/target/register.h @@ -27,11 +27,11 @@ 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; |