aboutsummaryrefslogtreecommitdiff
path: root/src/flash/flash.h
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/flash.h
parent98d7ed8523f4324b21963d6b15391df91680a658 (diff)
downloadriscv-openocd-fb59ec739a3ae79937020dc2fe5413be0e73e8d3.zip
riscv-openocd-fb59ec739a3ae79937020dc2fe5413be0e73e8d3.tar.gz
riscv-openocd-fb59ec739a3ae79937020dc2fe5413be0e73e8d3.tar.bz2
flash_sector_t -> struct flash_sector
Remove misleading typedef and redundant suffix from struct flash_sector.
Diffstat (limited to 'src/flash/flash.h')
-rw-r--r--src/flash/flash.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/flash/flash.h b/src/flash/flash.h
index 7afb132..d4abcde 100644
--- a/src/flash/flash.h
+++ b/src/flash/flash.h
@@ -38,7 +38,7 @@ struct image_s;
* within a flash bank. A single bank typically consists of multiple
* sectors, each of which can be erased and protected independently.
*/
-typedef struct flash_sector_s
+struct flash_sector
{
/// Bus offset from start of the flash chip (in bytes).
uint32_t offset;
@@ -55,7 +55,7 @@ typedef struct flash_sector_s
* @c flash_driver_s::protect_check.
*/
int is_protected;
-} flash_sector_t;
+};
struct flash_bank_s;
@@ -259,7 +259,7 @@ typedef struct flash_bank_s
*/
int num_sectors;
/// Array of sectors, allocated and initilized by the flash driver
- flash_sector_t *sectors;
+ struct flash_sector *sectors;
struct flash_bank_s *next; /**< The next flash bank on this chip */
} flash_bank_t;