diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 08:42:11 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:11 -0800 |
commit | a1971ecacf6450aa57192680fc201928deb46b7d (patch) | |
tree | 5f62dea62494797c987a7b608704c5460d97ac56 /src/target/cortex_a8.h | |
parent | 72b421418f315cb54a01ba4d249082f989d5154a (diff) |
cortex_a8_common_t -> struct cortex_a8_common
Remove misleading typedef and redundant suffix from struct cortex_a8_common.
Diffstat (limited to 'src/target/cortex_a8.h')
-rw-r--r-- | src/target/cortex_a8.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/target/cortex_a8.h b/src/target/cortex_a8.h index 8216ffbb..131cddbf 100644 --- a/src/target/cortex_a8.h +++ b/src/target/cortex_a8.h @@ -100,7 +100,7 @@ typedef struct cortex_a8_wrp_s uint8_t WRPn; } cortex_a8_wrp_t; -typedef struct cortex_a8_common_s +struct cortex_a8_common { int common_magic; struct arm_jtag jtag_info; @@ -134,16 +134,16 @@ typedef struct cortex_a8_common_s int fast_reg_read; struct armv7a_common armv7a_common; -} cortex_a8_common_t; +}; -static inline struct cortex_a8_common_s * +static inline struct cortex_a8_common * target_to_cortex_a8(struct target_s *target) { - return container_of(target->arch_info, struct cortex_a8_common_s, + return container_of(target->arch_info, struct cortex_a8_common, armv7a_common.armv4_5_common); } int cortex_a8_init_arch_info(target_t *target, - cortex_a8_common_t *cortex_a8, struct jtag_tap *tap); + struct cortex_a8_common *cortex_a8, struct jtag_tap *tap); #endif /* CORTEX_A8_H */ |