summaryrefslogtreecommitdiff
path: root/Platform/Marvell/Drivers/Spi/Devices
diff options
context:
space:
mode:
authorMarcin Wojtas <mw@semihalf.com>2017-09-25 03:16:13 +0200
committerMarcin Wojtas <mw@semihalf.com>2017-10-05 16:58:06 +0200
commit13f15e8113441c3fb8ba527c23a7db7ca7ad0d58 (patch)
treeeb2f42386dfe69727f33d76c6f54842f877fcf1a /Platform/Marvell/Drivers/Spi/Devices
parent5d3bc1fdd28bcc300adb1290aae9f5e0f71546e9 (diff)
downloadedk2-platforms-13f15e8113441c3fb8ba527c23a7db7ca7ad0d58.tar.xz
Marvell/Drivers: MvSpiFlash: Minor style fix
This patch correct style of two variables to the camel-case version. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas <mw@semihalf.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'Platform/Marvell/Drivers/Spi/Devices')
-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) {