diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 08:44:30 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:12 -0800 |
commit | 46fc1d57ac9462fd788277609707a379c7a406cb (patch) | |
tree | 7dc71959d1ca261a8a49a01579d46097284e332b /src/target/target.h | |
parent | c2b5d8a6fa72ce6b0fed1e612d4fe5e4b54ba45a (diff) | |
download | riscv-openocd-46fc1d57ac9462fd788277609707a379c7a406cb.zip riscv-openocd-46fc1d57ac9462fd788277609707a379c7a406cb.tar.gz riscv-openocd-46fc1d57ac9462fd788277609707a379c7a406cb.tar.bz2 |
working_area_t -> struct working_area
Remove misleading typedef and redundant suffix from struct working_area.
Diffstat (limited to 'src/target/target.h')
-rw-r--r-- | src/target/target.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/target/target.h b/src/target/target.h index b7fa3eb..1497355 100644 --- a/src/target/target.h +++ b/src/target/target.h @@ -114,15 +114,15 @@ extern const Jim_Nvp nvp_target_endian[]; struct target_s; -typedef struct working_area_s +struct working_area { uint32_t address; uint32_t size; int free; uint8_t *backup; - struct working_area_s **user; - struct working_area_s *next; -} working_area_t; + struct working_area **user; + struct working_area *next; +}; // target_type.h contains the full definitionof struct target_type_s struct target_type_s; @@ -149,7 +149,7 @@ typedef struct target_s uint32_t working_area_phys; /* physical address */ uint32_t working_area_size; /* size in bytes */ uint32_t backup_working_area; /* whether the content of the working area has to be preserved */ - struct working_area_s *working_areas;/* list of allocated working areas */ + struct working_area *working_areas;/* list of allocated working areas */ enum target_debug_reason debug_reason;/* reason why the target entered debug state */ enum target_endianess endianness; /* target endianess */ // also see: target_state_name() @@ -441,10 +441,10 @@ const char *target_state_name( target_t *target ); * */ int target_alloc_working_area(struct target_s *target, - uint32_t size, working_area_t **area); -int target_free_working_area(struct target_s *target, working_area_t *area); + uint32_t size, struct working_area **area); +int target_free_working_area(struct target_s *target, struct working_area *area); int target_free_working_area_restore(struct target_s *target, - working_area_t *area, int restore); + struct working_area *area, int restore); void target_free_all_working_areas(struct target_s *target); void target_free_all_working_areas_restore(struct target_s *target, int restore); |