summaryrefslogtreecommitdiff
path: root/src/flash/at91sam7.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 07:37:54 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:06 -0800
commitfb59ec739a3ae79937020dc2fe5413be0e73e8d3 (patch)
tree1d64fac47de8d410997ec3edf692c9ef41448bb9 /src/flash/at91sam7.c
parent98d7ed8523f4324b21963d6b15391df91680a658 (diff)
downloadopenocd+libswd-fb59ec739a3ae79937020dc2fe5413be0e73e8d3.tar.gz
openocd+libswd-fb59ec739a3ae79937020dc2fe5413be0e73e8d3.tar.bz2
openocd+libswd-fb59ec739a3ae79937020dc2fe5413be0e73e8d3.tar.xz
openocd+libswd-fb59ec739a3ae79937020dc2fe5413be0e73e8d3.zip
flash_sector_t -> struct flash_sector
Remove misleading typedef and redundant suffix from struct flash_sector.
Diffstat (limited to 'src/flash/at91sam7.c')
-rw-r--r--src/flash/at91sam7.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/at91sam7.c b/src/flash/at91sam7.c
index ede54913..fd84e231 100644
--- a/src/flash/at91sam7.c
+++ b/src/flash/at91sam7.c
@@ -551,7 +551,7 @@ static int at91sam7_read_part_info(struct flash_bank_s *bank)
t_bank->num_sectors = sectors_num;
/* allocate sectors */
- t_bank->sectors = malloc(sectors_num * sizeof(flash_sector_t));
+ t_bank->sectors = malloc(sectors_num * sizeof(struct flash_sector));
for (sec = 0; sec < sectors_num; sec++)
{
t_bank->sectors[sec].offset = sec * pages_per_sector * page_size;
@@ -804,7 +804,7 @@ FLASH_BANK_COMMAND_HANDLER(at91sam7_flash_bank_command)
t_bank->num_sectors = num_sectors;
/* allocate sectors */
- t_bank->sectors = malloc(num_sectors * sizeof(flash_sector_t));
+ t_bank->sectors = malloc(num_sectors * sizeof(struct flash_sector));
for (sec = 0; sec < num_sectors; sec++)
{
t_bank->sectors[sec].offset = sec * pages_per_sector * page_size;