From: Zachary T Welch Date: Fri, 13 Nov 2009 16:43:51 +0000 (-0800) Subject: bitfield_desc_t -> struct bitfield_desc X-Git-Tag: v0.4.0-rc1~653 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=de3fb2f3bce2de5be44223204ce368216ed85b0f;p=openocd bitfield_desc_t -> struct bitfield_desc Remove misleading typedef and redundant suffix from struct bitfield_desc. --- 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 #include -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;