diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 08:42:15 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:11 -0800 |
commit | 26a99ed740f4071c9eebba10f7f597844812fc13 (patch) | |
tree | 6337c1c2c852e149dc4770fd291c4e138f267d91 /src/target/cortex_m3.h | |
parent | a1971ecacf6450aa57192680fc201928deb46b7d (diff) |
cortex_m3_common_t -> struct cortex_m3_common
Remove misleading typedef and redundant suffix from struct cortex_m3_common.
Diffstat (limited to 'src/target/cortex_m3.h')
-rw-r--r-- | src/target/cortex_m3.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/target/cortex_m3.h b/src/target/cortex_m3.h index 74740491..b2d558d1 100644 --- a/src/target/cortex_m3.h +++ b/src/target/cortex_m3.h @@ -136,7 +136,7 @@ typedef struct cortex_m3_dwt_comparator_s uint32_t dwt_comparator_address; } cortex_m3_dwt_comparator_t; -typedef struct cortex_m3_common_s +struct cortex_m3_common { int common_magic; struct arm_jtag jtag_info; @@ -161,13 +161,13 @@ typedef struct cortex_m3_common_s struct reg_cache_s *dwt_cache; struct armv7m_common armv7m; -} cortex_m3_common_t; +}; -static inline struct cortex_m3_common_s * +static inline struct cortex_m3_common * target_to_cm3(struct target_s *target) { return container_of(target->arch_info, - struct cortex_m3_common_s, armv7m); + struct cortex_m3_common, armv7m); } #endif /* CORTEX_M3_H */ |