diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 08:44:18 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:12 -0800 |
commit | c2b5d8a6fa72ce6b0fed1e612d4fe5e4b54ba45a (patch) | |
tree | 6349d90a8f8935fc02bc356ae8f23516ac9847a2 /src/target/register.h | |
parent | 74d09617b927ed7011098d5a65087dee1ef1e87a (diff) | |
download | riscv-openocd-c2b5d8a6fa72ce6b0fed1e612d4fe5e4b54ba45a.zip riscv-openocd-c2b5d8a6fa72ce6b0fed1e612d4fe5e4b54ba45a.tar.gz riscv-openocd-c2b5d8a6fa72ce6b0fed1e612d4fe5e4b54ba45a.tar.bz2 |
reg_arch_type_t -> struct reg_arch_type
Remove misleading typedef and redundant suffix from struct reg_arch_type.
Diffstat (limited to 'src/target/register.h')
-rw-r--r-- | src/target/register.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/target/register.h b/src/target/register.h index 422fbd2..57342ba 100644 --- a/src/target/register.h +++ b/src/target/register.h @@ -54,13 +54,13 @@ struct reg_cache int num_regs; }; -typedef struct reg_arch_type_s +struct reg_arch_type { int id; int (*get)(reg_t *reg); int (*set)(reg_t *reg, uint8_t *buf); - struct reg_arch_type_s *next; -} reg_arch_type_t; + struct reg_arch_type *next; +}; reg_t* register_get_by_name(struct reg_cache *first, const char *name, bool search_all); @@ -68,7 +68,7 @@ struct reg_cache** register_get_last_cache_p(struct reg_cache **first); int register_reg_arch_type(int (*get)(reg_t *reg), int (*set)(reg_t *reg, uint8_t *buf)); -reg_arch_type_t* register_get_arch_type(int id); +struct reg_arch_type* register_get_arch_type(int id); void register_init_dummy(reg_t *reg); |