diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 13:30:50 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 13:30:50 -0800 |
commit | ef746e27c55c14b7a4f6381c490e5c175e409c0b (patch) | |
tree | c98f55afdd4a40de64371a04f7d201a47decb7e4 /src/flash | |
parent | 98723c4ecdbe06f90c66f3abec27b792c3b38e34 (diff) | |
download | openocd+libswd-ef746e27c55c14b7a4f6381c490e5c175e409c0b.tar.gz openocd+libswd-ef746e27c55c14b7a4f6381c490e5c175e409c0b.tar.bz2 openocd+libswd-ef746e27c55c14b7a4f6381c490e5c175e409c0b.tar.xz openocd+libswd-ef746e27c55c14b7a4f6381c490e5c175e409c0b.zip |
command_t -> struct command
Remove misleading typedef and redundant suffix from struct command.
Diffstat (limited to 'src/flash')
-rw-r--r-- | src/flash/at91sam3.c | 2 | ||||
-rw-r--r-- | src/flash/at91sam7.c | 2 | ||||
-rw-r--r-- | src/flash/avrf.c | 2 | ||||
-rw-r--r-- | src/flash/cfi.c | 2 | ||||
-rw-r--r-- | src/flash/flash.c | 2 | ||||
-rw-r--r-- | src/flash/lpc2000.c | 2 | ||||
-rw-r--r-- | src/flash/lpc2900.c | 2 | ||||
-rw-r--r-- | src/flash/lpc3180_nand_controller.c | 2 | ||||
-rw-r--r-- | src/flash/mflash.c | 2 | ||||
-rw-r--r-- | src/flash/nand.c | 2 | ||||
-rw-r--r-- | src/flash/pic32mx.c | 2 | ||||
-rw-r--r-- | src/flash/stellaris.c | 2 | ||||
-rw-r--r-- | src/flash/stm32x.c | 2 | ||||
-rw-r--r-- | src/flash/str7x.c | 2 | ||||
-rw-r--r-- | src/flash/str9x.c | 2 | ||||
-rw-r--r-- | src/flash/str9xpec.c | 2 | ||||
-rw-r--r-- | src/flash/tms470.c | 2 |
17 files changed, 17 insertions, 17 deletions
diff --git a/src/flash/at91sam3.c b/src/flash/at91sam3.c index 4459364e..ad45bd5a 100644 --- a/src/flash/at91sam3.c +++ b/src/flash/at91sam3.c @@ -2474,7 +2474,7 @@ static int sam3_registered; static int sam3_register_commands(struct command_context *cmd_ctx) { - command_t *pCmd; + struct command *pCmd; // only register once if (!sam3_registered) { diff --git a/src/flash/at91sam7.c b/src/flash/at91sam7.c index 18cfb986..e0b83d57 100644 --- a/src/flash/at91sam7.c +++ b/src/flash/at91sam7.c @@ -1180,7 +1180,7 @@ COMMAND_HANDLER(at91sam7_handle_gpnvm_command) static int at91sam7_register_commands(struct command_context *cmd_ctx) { - command_t *at91sam7_cmd = register_command(cmd_ctx, NULL, "at91sam7", + struct command *at91sam7_cmd = register_command(cmd_ctx, NULL, "at91sam7", NULL, COMMAND_ANY, NULL); register_command(cmd_ctx, at91sam7_cmd, "gpnvm", diff --git a/src/flash/avrf.c b/src/flash/avrf.c index ea9f0833..e41093de 100644 --- a/src/flash/avrf.c +++ b/src/flash/avrf.c @@ -451,7 +451,7 @@ COMMAND_HANDLER(avrf_handle_mass_erase_command) static int avrf_register_commands(struct command_context *cmd_ctx) { - command_t *avr_cmd = register_command(cmd_ctx, NULL, "avr", + struct command *avr_cmd = register_command(cmd_ctx, NULL, "avr", NULL, COMMAND_ANY, "avr flash specific commands"); register_command(cmd_ctx, avr_cmd, "mass_erase", diff --git a/src/flash/cfi.c b/src/flash/cfi.c index d49ddf31..17f5c32b 100644 --- a/src/flash/cfi.c +++ b/src/flash/cfi.c @@ -590,7 +590,7 @@ static int cfi_intel_info(struct flash_bank *bank, char *buf, int buf_size) static int cfi_register_commands(struct command_context *cmd_ctx) { - /*command_t *cfi_cmd = */ + /*struct command *cfi_cmd = */ register_command(cmd_ctx, NULL, "cfi", NULL, COMMAND_ANY, "flash bank cfi <base> <size> <chip_width> <bus_width> <targetNum> [jedec_probe/x16_as_x8]"); /* register_command(cmd_ctx, cfi_cmd, "part_id", cfi_handle_part_id_command, COMMAND_EXEC, diff --git a/src/flash/flash.c b/src/flash/flash.c index 32c1f490..20efa502 100644 --- a/src/flash/flash.c +++ b/src/flash/flash.c @@ -77,7 +77,7 @@ struct flash_driver *flash_drivers[] = { }; struct flash_bank *flash_banks; -static command_t *flash_cmd; +static struct command *flash_cmd; /* wafer thin wrapper for invoking the flash driver */ static int flash_driver_write(struct flash_bank *bank, uint8_t *buffer, uint32_t offset, uint32_t count) diff --git a/src/flash/lpc2000.c b/src/flash/lpc2000.c index f3d7e5b4..df1f0824 100644 --- a/src/flash/lpc2000.c +++ b/src/flash/lpc2000.c @@ -778,7 +778,7 @@ COMMAND_HANDLER(lpc2000_handle_part_id_command) static int lpc2000_register_commands(struct command_context *cmd_ctx) { - command_t *lpc2000_cmd = register_command(cmd_ctx, NULL, "lpc2000", + struct command *lpc2000_cmd = register_command(cmd_ctx, NULL, "lpc2000", NULL, COMMAND_ANY, NULL); register_command(cmd_ctx, lpc2000_cmd, "part_id", diff --git a/src/flash/lpc2900.c b/src/flash/lpc2900.c index 4cf20921..739ac43b 100644 --- a/src/flash/lpc2900.c +++ b/src/flash/lpc2900.c @@ -954,7 +954,7 @@ COMMAND_HANDLER(lpc2900_handle_secure_jtag_command) */ static int lpc2900_register_commands(struct command_context *cmd_ctx) { - command_t *lpc2900_cmd = register_command(cmd_ctx, NULL, "lpc2900", + struct command *lpc2900_cmd = register_command(cmd_ctx, NULL, "lpc2900", NULL, COMMAND_ANY, NULL); register_command( diff --git a/src/flash/lpc3180_nand_controller.c b/src/flash/lpc3180_nand_controller.c index ffa50557..3589e8be 100644 --- a/src/flash/lpc3180_nand_controller.c +++ b/src/flash/lpc3180_nand_controller.c @@ -875,7 +875,7 @@ COMMAND_HANDLER(handle_lpc3180_select_command) static int lpc3180_register_commands(struct command_context *cmd_ctx) { - command_t *lpc3180_cmd = register_command(cmd_ctx, NULL, "lpc3180", NULL, COMMAND_ANY, "commands specific to the LPC3180 NAND flash controllers"); + struct command *lpc3180_cmd = register_command(cmd_ctx, NULL, "lpc3180", NULL, COMMAND_ANY, "commands specific to the LPC3180 NAND flash controllers"); register_command(cmd_ctx, lpc3180_cmd, "select", handle_lpc3180_select_command, COMMAND_EXEC, "select <'mlc'|'slc'> controller (default is mlc)"); diff --git a/src/flash/mflash.c b/src/flash/mflash.c index 029178d1..c2d04ca4 100644 --- a/src/flash/mflash.c +++ b/src/flash/mflash.c @@ -32,7 +32,7 @@ static int s3c2440_set_gpio_output_val (struct mflash_gpio_num gpio, uint8_t val static int pxa270_set_gpio_to_output (struct mflash_gpio_num gpio); static int pxa270_set_gpio_output_val (struct mflash_gpio_num gpio, uint8_t val); -static command_t *mflash_cmd; +static struct command *mflash_cmd; static struct mflash_bank *mflash_bank; diff --git a/src/flash/nand.c b/src/flash/nand.c index 4094effc..be3a669a 100644 --- a/src/flash/nand.c +++ b/src/flash/nand.c @@ -62,7 +62,7 @@ static struct nand_flash_controller *nand_flash_controllers[] = /* configured NAND devices and NAND Flash command handler */ static struct nand_device *nand_devices = NULL; -static command_t *nand_cmd; +static struct command *nand_cmd; /* Chip ID list * diff --git a/src/flash/pic32mx.c b/src/flash/pic32mx.c index bb3d69c1..b6c4c440 100644 --- a/src/flash/pic32mx.c +++ b/src/flash/pic32mx.c @@ -885,7 +885,7 @@ COMMAND_HANDLER(pic32mx_handle_pgm_word_command) static int pic32mx_register_commands(struct command_context *cmd_ctx) { - command_t *pic32mx_cmd = register_command(cmd_ctx, NULL, "pic32mx", + struct command *pic32mx_cmd = register_command(cmd_ctx, NULL, "pic32mx", NULL, COMMAND_ANY, "pic32mx flash specific commands"); #if 0 register_command(cmd_ctx, pic32mx_cmd, "lock", diff --git a/src/flash/stellaris.c b/src/flash/stellaris.c index 910d047d..56762d16 100644 --- a/src/flash/stellaris.c +++ b/src/flash/stellaris.c @@ -1162,7 +1162,7 @@ COMMAND_HANDLER(stellaris_handle_mass_erase_command) static int stellaris_register_commands(struct command_context *cmd_ctx) { - command_t *stm32x_cmd = register_command(cmd_ctx, NULL, "stellaris", + struct command *stm32x_cmd = register_command(cmd_ctx, NULL, "stellaris", NULL, COMMAND_ANY, "stellaris flash specific commands"); register_command(cmd_ctx, stm32x_cmd, "mass_erase", diff --git a/src/flash/stm32x.c b/src/flash/stm32x.c index abbf6cb6..7ac06a68 100644 --- a/src/flash/stm32x.c +++ b/src/flash/stm32x.c @@ -1183,7 +1183,7 @@ COMMAND_HANDLER(stm32x_handle_mass_erase_command) static int stm32x_register_commands(struct command_context *cmd_ctx) { - command_t *stm32x_cmd = register_command(cmd_ctx, NULL, "stm32x", + struct command *stm32x_cmd = register_command(cmd_ctx, NULL, "stm32x", NULL, COMMAND_ANY, "stm32x flash specific commands"); register_command(cmd_ctx, stm32x_cmd, "lock", diff --git a/src/flash/str7x.c b/src/flash/str7x.c index 83070134..71709bb0 100644 --- a/src/flash/str7x.c +++ b/src/flash/str7x.c @@ -673,7 +673,7 @@ COMMAND_HANDLER(str7x_handle_disable_jtag_command) static int str7x_register_commands(struct command_context *cmd_ctx) { - command_t *str7x_cmd = register_command(cmd_ctx, NULL, "str7x", + struct command *str7x_cmd = register_command(cmd_ctx, NULL, "str7x", NULL, COMMAND_ANY, "str7x flash specific commands"); register_command(cmd_ctx, str7x_cmd, "disable_jtag", diff --git a/src/flash/str9x.c b/src/flash/str9x.c index a06bd1ec..1506cb59 100644 --- a/src/flash/str9x.c +++ b/src/flash/str9x.c @@ -677,7 +677,7 @@ COMMAND_HANDLER(str9x_handle_flash_config_command) static int str9x_register_commands(struct command_context *cmd_ctx) { - command_t *str9x_cmd = register_command(cmd_ctx, NULL, "str9x", + struct command *str9x_cmd = register_command(cmd_ctx, NULL, "str9x", NULL, COMMAND_ANY, "str9x flash commands"); register_command(cmd_ctx, str9x_cmd, "flash_config", diff --git a/src/flash/str9xpec.c b/src/flash/str9xpec.c index 03a8ea2e..d1b02c5e 100644 --- a/src/flash/str9xpec.c +++ b/src/flash/str9xpec.c @@ -1165,7 +1165,7 @@ COMMAND_HANDLER(str9xpec_handle_flash_disable_turbo_command) static int str9xpec_register_commands(struct command_context *cmd_ctx) { - command_t *str9xpec_cmd = register_command(cmd_ctx, NULL, "str9xpec", + struct command *str9xpec_cmd = register_command(cmd_ctx, NULL, "str9xpec", NULL, COMMAND_ANY, "str9xpec flash specific commands"); register_command(cmd_ctx, str9xpec_cmd, "enable_turbo", diff --git a/src/flash/tms470.c b/src/flash/tms470.c index a5f2f36a..b71e9ed6 100644 --- a/src/flash/tms470.c +++ b/src/flash/tms470.c @@ -819,7 +819,7 @@ static int tms470_erase_sector(struct flash_bank *bank, int sector) static int tms470_register_commands(struct command_context *cmd_ctx) { - command_t *tms470_cmd = register_command(cmd_ctx, NULL, "tms470", NULL, COMMAND_ANY, "applies to TI tms470 family"); + struct command *tms470_cmd = register_command(cmd_ctx, NULL, "tms470", NULL, COMMAND_ANY, "applies to TI tms470 family"); register_command(cmd_ctx, tms470_cmd, "flash_keyset", tms470_handle_flash_keyset_command, COMMAND_ANY, "tms470 flash_keyset <key0> <key1> <key2> <key3>"); register_command(cmd_ctx, tms470_cmd, "osc_megahertz", tms470_handle_osc_megahertz_command, COMMAND_ANY, "tms470 osc_megahertz <MHz>"); |