diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 08:43:39 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:12 -0800 |
commit | b87f07110a42981aa53bb6f824d29216658dafc4 (patch) | |
tree | f6003b11489d664de0f1a5937dbd12f17e11afe9 /src | |
parent | a8141cafdef162d52e128cd2ab51702b9800fda2 (diff) | |
download | openocd_libswd-b87f07110a42981aa53bb6f824d29216658dafc4.tar.gz openocd_libswd-b87f07110a42981aa53bb6f824d29216658dafc4.tar.bz2 openocd_libswd-b87f07110a42981aa53bb6f824d29216658dafc4.tar.xz openocd_libswd-b87f07110a42981aa53bb6f824d29216658dafc4.zip |
mips_m4k_common_t -> struct mips_m4k_common
Remove misleading typedef and redundant suffix from struct mips_m4k_common.
Diffstat (limited to 'src')
-rw-r--r-- | src/target/mips_m4k.c | 4 | ||||
-rw-r--r-- | src/target/mips_m4k.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/target/mips_m4k.c b/src/target/mips_m4k.c index 580c0602..bd248748 100644 --- a/src/target/mips_m4k.c +++ b/src/target/mips_m4k.c @@ -917,7 +917,7 @@ int mips_m4k_init_target(struct command_context_s *cmd_ctx, struct target_s *tar return ERROR_OK; } -int mips_m4k_init_arch_info(target_t *target, mips_m4k_common_t *mips_m4k, struct jtag_tap *tap) +int mips_m4k_init_arch_info(target_t *target, struct mips_m4k_common *mips_m4k, struct jtag_tap *tap) { struct mips32_common *mips32 = &mips_m4k->mips32_common; @@ -932,7 +932,7 @@ int mips_m4k_init_arch_info(target_t *target, mips_m4k_common_t *mips_m4k, struc int mips_m4k_target_create(struct target_s *target, Jim_Interp *interp) { - mips_m4k_common_t *mips_m4k = calloc(1,sizeof(mips_m4k_common_t)); + struct mips_m4k_common *mips_m4k = calloc(1,sizeof(struct mips_m4k_common)); mips_m4k_init_arch_info(target, mips_m4k, target->tap); diff --git a/src/target/mips_m4k.h b/src/target/mips_m4k.h index 89c0a162..6044974a 100644 --- a/src/target/mips_m4k.h +++ b/src/target/mips_m4k.h @@ -29,11 +29,11 @@ struct target_s; #define MIPSM4K_COMMON_MAGIC 0xB321B321 -typedef struct mips_m4k_common_s +struct mips_m4k_common { int common_magic; struct mips32_common mips32_common; -} mips_m4k_common_t; +}; int mips_m4k_bulk_write_memory(struct target_s *target, uint32_t address, uint32_t count, uint8_t *buffer); |