diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 07:37:40 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:06 -0800 |
commit | 4c28cc68edfb6a3ced1e31fae8a91fbbbc2f02cf (patch) | |
tree | 3a5cbd343e528d266cc963d99dfafce55360ab20 /src/flash | |
parent | 0139e7d51abfba861ff9d3c8c1bc1b12e79c696a (diff) | |
download | riscv-openocd-4c28cc68edfb6a3ced1e31fae8a91fbbbc2f02cf.zip riscv-openocd-4c28cc68edfb6a3ced1e31fae8a91fbbbc2f02cf.tar.gz riscv-openocd-4c28cc68edfb6a3ced1e31fae8a91fbbbc2f02cf.tar.bz2 |
cfi_unlock_addresses_t -> struct cfi_unlock_addresses
Remove misleading typedef and redundant suffix from struct cfi_unlock_addresses.
Diffstat (limited to 'src/flash')
-rw-r--r-- | src/flash/cfi.c | 4 | ||||
-rw-r--r-- | src/flash/cfi.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/flash/cfi.c b/src/flash/cfi.c index ad311d4..5cfac15 100644 --- a/src/flash/cfi.c +++ b/src/flash/cfi.c @@ -35,7 +35,7 @@ /* defines internal maximum size for code fragment in cfi_intel_write_block() */ #define CFI_MAX_INTEL_CODESIZE 256 -static cfi_unlock_addresses_t cfi_unlock_addresses[] = +static struct cfi_unlock_addresses cfi_unlock_addresses[] = { [CFI_UNLOCK_555_2AA] = { .unlock1 = 0x555, .unlock2 = 0x2aa }, [CFI_UNLOCK_5555_2AAA] = { .unlock1 = 0x5555, .unlock2 = 0x2aaa }, @@ -2111,7 +2111,7 @@ static void cfi_fixup_0002_unlock_addresses(flash_bank_t *bank, void *param) { struct cfi_flash_bank *cfi_info = bank->driver_priv; struct cfi_spansion_pri_ext *pri_ext = cfi_info->pri_ext; - cfi_unlock_addresses_t *unlock_addresses = param; + struct cfi_unlock_addresses *unlock_addresses = param; pri_ext->_unlock1 = unlock_addresses->unlock1; pri_ext->_unlock2 = unlock_addresses->unlock2; diff --git a/src/flash/cfi.h b/src/flash/cfi.h index 78fdd4d..73f8ea1 100644 --- a/src/flash/cfi.h +++ b/src/flash/cfi.h @@ -136,11 +136,11 @@ enum { CFI_UNLOCK_5555_2AAA, }; -typedef struct cfi_unlock_addresses_s +struct cfi_unlock_addresses { uint32_t unlock1; uint32_t unlock2; -} cfi_unlock_addresses_t; +}; typedef struct cfi_fixup_s { |