forked from auracaster/openocd
flash/nor/cfi: fix CamelCase symbols in cfi_spansion_pri_ext
The struct cfi_spansion_pri_ext has few symbols in CamelCase.
Change all them accordingly to OpenOCD coding style.
Patch created automatically with the script below:
%<---%<---%<---%<---%<---%<---%<---%<---%<---%<---%<---%<---%<---
(cat << EOF
VppMin vpp_min
VppMax vpp_max
TopBottom top_bottom
TmpBlkUnprotect tmp_blk_unprotected
SimultaneousOps simultaneous_ops
SiliconRevision silicon_revision
PageMode page_mode
EraseSuspend erase_suspend
BurstMode burst_mode
BlkProtUnprot blk_prot_unprot
BlkProt blk_prot
EOF
) | while read a b; do
sed -i "s/$a/$b/g" src/flash/nor/*cfi*
done
%<---%<---%<---%<---%<---%<---%<---%<---%<---%<---%<---%<---%<---
Change-Id: I135331539ca9aa84765fdffc51c87a07a46ee77a
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/6298
Tested-by: jenkins
This commit is contained in:
@@ -536,17 +536,17 @@ void cfi_fixup_non_cfi(struct flash_bank *bank)
|
||||
pri_ext->major_version = '1';
|
||||
pri_ext->minor_version = '0';
|
||||
|
||||
pri_ext->SiliconRevision = 0x0;
|
||||
pri_ext->EraseSuspend = 0x0;
|
||||
pri_ext->BlkProt = 0x0;
|
||||
pri_ext->TmpBlkUnprotect = 0x0;
|
||||
pri_ext->BlkProtUnprot = 0x0;
|
||||
pri_ext->SimultaneousOps = 0x0;
|
||||
pri_ext->BurstMode = 0x0;
|
||||
pri_ext->PageMode = 0x0;
|
||||
pri_ext->VppMin = 0x0;
|
||||
pri_ext->VppMax = 0x0;
|
||||
pri_ext->TopBottom = 0x0;
|
||||
pri_ext->silicon_revision = 0x0;
|
||||
pri_ext->erase_suspend = 0x0;
|
||||
pri_ext->blk_prot = 0x0;
|
||||
pri_ext->tmp_blk_unprotected = 0x0;
|
||||
pri_ext->blk_prot_unprot = 0x0;
|
||||
pri_ext->simultaneous_ops = 0x0;
|
||||
pri_ext->burst_mode = 0x0;
|
||||
pri_ext->page_mode = 0x0;
|
||||
pri_ext->vpp_min = 0x0;
|
||||
pri_ext->vpp_max = 0x0;
|
||||
pri_ext->top_bottom = 0x0;
|
||||
|
||||
pri_ext->_unlock1 = 0x5555;
|
||||
pri_ext->_unlock2 = 0x2AAA;
|
||||
|
||||
Reference in New Issue
Block a user