From 5f68f45186c1fe73e1c83bd5847edd6bfaf06b34 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Fri, 13 Nov 2009 08:40:15 -0800 Subject: arm926ejs_common_t -> struct arm926ejs_common Remove misleading typedef and redundant suffix from struct arm926ejs_common. --- src/target/arm926ejs.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/target/arm926ejs.h') diff --git a/src/target/arm926ejs.h b/src/target/arm926ejs.h index f0df0913..27320e6d 100644 --- a/src/target/arm926ejs.h +++ b/src/target/arm926ejs.h @@ -25,7 +25,7 @@ #define ARM926EJS_COMMON_MAGIC 0xa926a926 -typedef struct arm926ejs_common_s +struct arm926ejs_common { arm9tdmi_common_t arm9tdmi_common; uint32_t common_magic; @@ -36,18 +36,18 @@ typedef struct arm926ejs_common_s uint32_t d_fsr; uint32_t i_fsr; uint32_t d_far; -} arm926ejs_common_t; +}; -static inline struct arm926ejs_common_s * +static inline struct arm926ejs_common * target_to_arm926(struct target_s *target) { - return container_of(target->arch_info, struct arm926ejs_common_s, + return container_of(target->arch_info, struct arm926ejs_common, arm9tdmi_common.arm7_9_common.armv4_5_common); } int arm926ejs_init_arch_info(target_t *target, - arm926ejs_common_t *arm926ejs, struct jtag_tap *tap); + struct arm926ejs_common *arm926ejs, struct jtag_tap *tap); int arm926ejs_register_commands(struct command_context_s *cmd_ctx); int arm926ejs_arch_state(struct target_s *target); int arm926ejs_write_memory(struct target_s *target, -- cgit v1.2.3-18-g5258