summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 07:31:10 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:06 -0800
commita7a8a1c9e2e86902a3a5864cd257e01e0b3f6da6 (patch)
treee9b815d19a5914ab8fc906f6d9fc406247c6e324 /src
parent6ca63ee756ea0772a60760da37867ca982b0b049 (diff)
downloadopenocd_libswd-a7a8a1c9e2e86902a3a5864cd257e01e0b3f6da6.tar.gz
openocd_libswd-a7a8a1c9e2e86902a3a5864cd257e01e0b3f6da6.tar.bz2
openocd_libswd-a7a8a1c9e2e86902a3a5864cd257e01e0b3f6da6.tar.xz
openocd_libswd-a7a8a1c9e2e86902a3a5864cd257e01e0b3f6da6.zip
avrf_flash_bank_t -> struct avrf_flash_bank
Remove misleading typedef and redundant suffix from struct avrf_flash_bank.
Diffstat (limited to 'src')
-rw-r--r--src/flash/avrf.c8
-rw-r--r--src/flash/avrf.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/flash/avrf.c b/src/flash/avrf.c
index 07b54c51..7a7eddd9 100644
--- a/src/flash/avrf.c
+++ b/src/flash/avrf.c
@@ -182,7 +182,7 @@ static int avr_jtagprg_writeflashpage(avr_common_t *avr, uint8_t *page_buf, uint
FLASH_BANK_COMMAND_HANDLER(avrf_flash_bank_command)
{
- avrf_flash_bank_t *avrf_info;
+ struct avrf_flash_bank *avrf_info;
if (argc < 6)
{
@@ -190,7 +190,7 @@ FLASH_BANK_COMMAND_HANDLER(avrf_flash_bank_command)
return ERROR_FLASH_BANK_INVALID;
}
- avrf_info = malloc(sizeof(avrf_flash_bank_t));
+ avrf_info = malloc(sizeof(struct avrf_flash_bank));
bank->driver_priv = avrf_info;
avrf_info->probed = 0;
@@ -264,7 +264,7 @@ static int avrf_write(struct flash_bank_s *bank, uint8_t *buffer, uint32_t offse
static int avrf_probe(struct flash_bank_s *bank)
{
target_t *target = bank->target;
- avrf_flash_bank_t *avrf_info = bank->driver_priv;
+ struct avrf_flash_bank *avrf_info = bank->driver_priv;
avr_common_t *avr = target->arch_info;
struct avrf_type *avr_info = NULL;
int i;
@@ -331,7 +331,7 @@ static int avrf_probe(struct flash_bank_s *bank)
static int avrf_auto_probe(struct flash_bank_s *bank)
{
- avrf_flash_bank_t *avrf_info = bank->driver_priv;
+ struct avrf_flash_bank *avrf_info = bank->driver_priv;
if (avrf_info->probed)
return ERROR_OK;
return avrf_probe(bank);
diff --git a/src/flash/avrf.h b/src/flash/avrf.h
index abb001c4..e75d9d7e 100644
--- a/src/flash/avrf.h
+++ b/src/flash/avrf.h
@@ -32,10 +32,10 @@ struct avrf_type
int eeprom_page_num;
};
-typedef struct avrf_flash_bank_s
+struct avrf_flash_bank
{
int ppage_size;
int probed;
-} avrf_flash_bank_t;
+};
#endif /* AVRF_H */