diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 07:41:10 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:07 -0800 |
commit | d0dfec33b6d6844c3c1b817a464b9f040ce40087 (patch) | |
tree | 839a6357552fe6872c8e68ebd5242bf641a4cdef /src/flash/nand.h | |
parent | 92fc7a6fdecac39ebc890ee3c2ae91f3fd50fdc5 (diff) | |
download | riscv-openocd-d0dfec33b6d6844c3c1b817a464b9f040ce40087.zip riscv-openocd-d0dfec33b6d6844c3c1b817a464b9f040ce40087.tar.gz riscv-openocd-d0dfec33b6d6844c3c1b817a464b9f040ce40087.tar.bz2 |
nand_block_t -> struct nand_block
Remove misleading typedef and redundant suffix from struct nand_block.
Diffstat (limited to 'src/flash/nand.h')
-rw-r--r-- | src/flash/nand.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/flash/nand.h b/src/flash/nand.h index ea31947..c6d4075 100644 --- a/src/flash/nand.h +++ b/src/flash/nand.h @@ -53,13 +53,13 @@ struct nand_flash_controller #define NAND_DEVICE_COMMAND_HANDLER(name) static __NAND_DEVICE_COMMAND(name) -typedef struct nand_block_s +struct nand_block { uint32_t offset; uint32_t size; int is_erased; int is_bad; -} nand_block_t; +}; struct nand_oobfree { int offset; @@ -85,7 +85,7 @@ typedef struct nand_device_s int erase_size; int use_raw; int num_blocks; - nand_block_t *blocks; + struct nand_block *blocks; struct nand_device_s *next; } nand_device_t; |