summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 08:41:07 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:10 -0800
commit15e8e4530866454c18c5d91ad9e867f339c2e82b (patch)
tree71e6415b9717a3e93d219f06d02f81102e112c2b /src/target
parent056fcdb540f0ab9a404f3b5de72fd707eb146603 (diff)
downloadopenocd+libswd-15e8e4530866454c18c5d91ad9e867f339c2e82b.tar.gz
openocd+libswd-15e8e4530866454c18c5d91ad9e867f339c2e82b.tar.bz2
openocd+libswd-15e8e4530866454c18c5d91ad9e867f339c2e82b.tar.xz
openocd+libswd-15e8e4530866454c18c5d91ad9e867f339c2e82b.zip
armv4_5_algorithm_t -> struct armv4_5_algorithm
Remove misleading typedef and redundant suffix from struct armv4_5_algorithm.
Diffstat (limited to 'src/target')
-rw-r--r--src/target/arm7_9_common.c6
-rw-r--r--src/target/armv4_5.c2
-rw-r--r--src/target/armv4_5.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/target/arm7_9_common.c b/src/target/arm7_9_common.c
index 65f26875..75998fe9 100644
--- a/src/target/arm7_9_common.c
+++ b/src/target/arm7_9_common.c
@@ -2690,7 +2690,7 @@ int arm7_9_bulk_write_memory(target_t *target, uint32_t address, uint32_t count,
}
}
- armv4_5_algorithm_t armv4_5_info;
+ struct armv4_5_algorithm armv4_5_info;
struct reg_param reg_params[1];
armv4_5_info.common_magic = ARMV4_5_COMMON_MAGIC;
@@ -2724,7 +2724,7 @@ int arm7_9_bulk_write_memory(target_t *target, uint32_t address, uint32_t count,
int arm7_9_checksum_memory(struct target_s *target, uint32_t address, uint32_t count, uint32_t* checksum)
{
working_area_t *crc_algorithm;
- armv4_5_algorithm_t armv4_5_info;
+ struct armv4_5_algorithm armv4_5_info;
struct reg_param reg_params[2];
int retval;
@@ -2809,7 +2809,7 @@ int arm7_9_blank_check_memory(struct target_s *target, uint32_t address, uint32_
{
working_area_t *erase_check_algorithm;
struct reg_param reg_params[3];
- armv4_5_algorithm_t armv4_5_info;
+ struct armv4_5_algorithm armv4_5_info;
int retval;
uint32_t i;
diff --git a/src/target/armv4_5.c b/src/target/armv4_5.c
index 0dd047dd..a89b98b8 100644
--- a/src/target/armv4_5.c
+++ b/src/target/armv4_5.c
@@ -546,7 +546,7 @@ static int armv4_5_run_algorithm_completion(struct target_s *target, uint32_t ex
int armv4_5_run_algorithm_inner(struct target_s *target, int num_mem_params, struct mem_param *mem_params, int num_reg_params, struct reg_param *reg_params, uint32_t entry_point, uint32_t exit_point, int timeout_ms, void *arch_info, int (*run_it)(struct target_s *target, uint32_t exit_point, int timeout_ms, void *arch_info))
{
struct armv4_5_common_s *armv4_5 = target_to_armv4_5(target);
- armv4_5_algorithm_t *armv4_5_algorithm_info = arch_info;
+ struct armv4_5_algorithm *armv4_5_algorithm_info = arch_info;
enum armv4_5_state core_state = armv4_5->core_state;
enum armv4_5_mode core_mode = armv4_5->core_mode;
uint32_t context[17];
diff --git a/src/target/armv4_5.h b/src/target/armv4_5.h
index c6686f1e..22069d1b 100644
--- a/src/target/armv4_5.h
+++ b/src/target/armv4_5.h
@@ -119,13 +119,13 @@ static inline bool is_arm(struct arm *arm)
return arm && arm->common_magic == ARMV4_5_COMMON_MAGIC;
}
-typedef struct armv4_5_algorithm_s
+struct armv4_5_algorithm
{
int common_magic;
enum armv4_5_mode core_mode;
enum armv4_5_state core_state;
-} armv4_5_algorithm_t;
+};
typedef struct armv4_5_core_reg_s
{