summaryrefslogtreecommitdiff
path: root/src/target/arm920t.h
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 08:36:02 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:08 -0800
commit996613522df32870b23e68d8d63e523908694598 (patch)
tree5a7a88d8bf7bbf90cd8a8456b094dbba53d4b26a /src/target/arm920t.h
parent52bc6cad87c2ae0558ec5b3539fecad15b75b008 (diff)
downloadopenocd+libswd-996613522df32870b23e68d8d63e523908694598.tar.gz
openocd+libswd-996613522df32870b23e68d8d63e523908694598.tar.bz2
openocd+libswd-996613522df32870b23e68d8d63e523908694598.tar.xz
openocd+libswd-996613522df32870b23e68d8d63e523908694598.zip
arm920t_common_t -> struct arm920t_common
Remove misleading typedef and redundant suffix from struct arm920t_common.
Diffstat (limited to 'src/target/arm920t.h')
-rw-r--r--src/target/arm920t.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/target/arm920t.h b/src/target/arm920t.h
index af0f9828..38dafcf1 100644
--- a/src/target/arm920t.h
+++ b/src/target/arm920t.h
@@ -25,7 +25,7 @@
#define ARM920T_COMMON_MAGIC 0xa920a920
-typedef struct arm920t_common_s
+struct arm920t_common
{
arm9tdmi_common_t arm9tdmi_common;
uint32_t common_magic;
@@ -36,12 +36,12 @@ typedef struct arm920t_common_s
uint32_t d_far;
uint32_t i_far;
int preserve_cache;
-} arm920t_common_t;
+};
-static inline struct arm920t_common_s *
+static inline struct arm920t_common *
target_to_arm920(struct target_s *target)
{
- return container_of(target->arch_info, struct arm920t_common_s,
+ return container_of(target->arch_info, struct arm920t_common,
arm9tdmi_common.arm7_9_common.armv4_5_common);
}