summaryrefslogtreecommitdiff
path: root/Platform/Marvell/Drivers/Spi
diff options
context:
space:
mode:
Diffstat (limited to 'Platform/Marvell/Drivers/Spi')
-rwxr-xr-xPlatform/Marvell/Drivers/Spi/Devices/MvSpiFlash.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.c b/Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.c
index 7ce1b3e8e0..6f7d9c7f07 100755
--- a/Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.c
+++ b/Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.c
@@ -104,13 +104,13 @@ MvSpiFlashWriteCommon (
UINT8 CmdStatus = CMD_READ_STATUS;
UINT8 State;
UINT32 Counter = 0xFFFFF;
- UINT8 poll_bit = STATUS_REG_POLL_WIP;
- UINT8 check_status = 0x0;
+ UINT8 PollBit = STATUS_REG_POLL_WIP;
+ UINT8 CheckStatus = 0x0;
CmdStatus = (UINT8)PcdGet32 (PcdSpiFlashPollCmd);
if (CmdStatus == CMD_FLAG_STATUS) {
- poll_bit = STATUS_REG_POLL_PEC;
- check_status = poll_bit;
+ PollBit = STATUS_REG_POLL_PEC;
+ CheckStatus = PollBit;
}
// Send command
@@ -127,7 +127,7 @@ MvSpiFlashWriteCommon (
SpiMasterProtocol->Transfer (SpiMasterProtocol, Slave, 1, NULL, &State,
0);
Counter--;
- if ((State & poll_bit) == check_status)
+ if ((State & PollBit) == CheckStatus)
break;
} while (Counter > 0);
if (Counter == 0) {