diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 13:25:47 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 13:25:47 -0800 |
commit | 98723c4ecdbe06f90c66f3abec27b792c3b38e34 (patch) | |
tree | c6ea2a1627e8f7109e3aa0589cd625ac0c740aa7 /src/flash/flash.c | |
parent | d16968e24f5d9e436ae4e136cd27652c4c948203 (diff) | |
download | riscv-openocd-98723c4ecdbe06f90c66f3abec27b792c3b38e34.zip riscv-openocd-98723c4ecdbe06f90c66f3abec27b792c3b38e34.tar.gz riscv-openocd-98723c4ecdbe06f90c66f3abec27b792c3b38e34.tar.bz2 |
command_context_t -> struct command_context
Remove misleading typedef and redundant suffix from struct command_context.
Diffstat (limited to 'src/flash/flash.c')
-rw-r--r-- | src/flash/flash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/flash/flash.c b/src/flash/flash.c index 96c63d5..32c1f49 100644 --- a/src/flash/flash.c +++ b/src/flash/flash.c @@ -199,7 +199,7 @@ struct flash_bank *get_flash_bank_by_num(int num) } int flash_command_get_bank_by_num( - struct command_context_s *cmd_ctx, const char *str, struct flash_bank **bank) + struct command_context *cmd_ctx, const char *str, struct flash_bank **bank) { unsigned bank_num; COMMAND_PARSE_NUMBER(uint, str, bank_num); @@ -511,7 +511,7 @@ COMMAND_HANDLER(handle_flash_protect_check_command) return ERROR_OK; } -static int flash_check_sector_parameters(struct command_context_s *cmd_ctx, +static int flash_check_sector_parameters(struct command_context *cmd_ctx, uint32_t first, uint32_t last, uint32_t num_sectors) { if (!(first <= last)) { @@ -1217,7 +1217,7 @@ int default_flash_blank_check(struct flash_bank *bank) return ERROR_OK; } -int flash_init_drivers(struct command_context_s *cmd_ctx) +int flash_init_drivers(struct command_context *cmd_ctx) { register_jim(cmd_ctx, "ocd_flash_banks", jim_flash_banks, "return information about the flash banks"); @@ -1267,7 +1267,7 @@ int flash_init_drivers(struct command_context_s *cmd_ctx) return ERROR_OK; } -int flash_register_commands(struct command_context_s *cmd_ctx) +int flash_register_commands(struct command_context *cmd_ctx) { flash_cmd = register_command(cmd_ctx, NULL, "flash", NULL, COMMAND_ANY, NULL); |