summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 08:41:43 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:10 -0800
commit5e43565ab543b1ceff4cc8030434a54ac28dd875 (patch)
tree9810c28fdc2ab66129a5462c14f6de8a782b70f2 /src/target
parente8a6e3b2f4e1b0f3cccfa01c486fbdd952842801 (diff)
downloadopenocd+libswd-5e43565ab543b1ceff4cc8030434a54ac28dd875.tar.gz
openocd+libswd-5e43565ab543b1ceff4cc8030434a54ac28dd875.tar.bz2
openocd+libswd-5e43565ab543b1ceff4cc8030434a54ac28dd875.tar.xz
openocd+libswd-5e43565ab543b1ceff4cc8030434a54ac28dd875.zip
armv7m_algorithm_t -> struct armv7m_algorithm
Remove misleading typedef and redundant suffix from struct armv7m_algorithm.
Diffstat (limited to 'src/target')
-rw-r--r--src/target/armv7m.c6
-rw-r--r--src/target/armv7m.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/target/armv7m.c b/src/target/armv7m.c
index 7fb73946..3ce6d7a8 100644
--- a/src/target/armv7m.c
+++ b/src/target/armv7m.c
@@ -363,7 +363,7 @@ int armv7m_run_algorithm(struct target_s *target,
int timeout_ms, void *arch_info)
{
struct armv7m_common *armv7m = target_to_armv7m(target);
- armv7m_algorithm_t *armv7m_algorithm_info = arch_info;
+ struct armv7m_algorithm *armv7m_algorithm_info = arch_info;
enum armv7m_mode core_mode = armv7m->core_mode;
int retval = ERROR_OK;
int i;
@@ -589,7 +589,7 @@ int armv7m_checksum_memory(struct target_s *target,
uint32_t address, uint32_t count, uint32_t* checksum)
{
working_area_t *crc_algorithm;
- armv7m_algorithm_t armv7m_info;
+ struct armv7m_algorithm armv7m_info;
struct reg_param reg_params[2];
int retval;
@@ -673,7 +673,7 @@ int armv7m_blank_check_memory(struct target_s *target,
{
working_area_t *erase_check_algorithm;
struct reg_param reg_params[3];
- armv7m_algorithm_t armv7m_info;
+ struct armv7m_algorithm armv7m_info;
int retval;
uint32_t i;
diff --git a/src/target/armv7m.h b/src/target/armv7m.h
index 602bf314..6e857ee4 100644
--- a/src/target/armv7m.h
+++ b/src/target/armv7m.h
@@ -119,12 +119,12 @@ target_to_armv7m(struct target_s *target)
return target->arch_info;
}
-typedef struct armv7m_algorithm_s
+struct armv7m_algorithm
{
int common_magic;
enum armv7m_mode core_mode;
-} armv7m_algorithm_t;
+};
typedef struct armv7m_core_reg_s
{