diff options
author | Marcin Wojtas <mw@semihalf.com> | 2017-09-25 03:16:13 +0200 |
---|---|---|
committer | Marcin Wojtas <mw@semihalf.com> | 2017-10-05 16:58:06 +0200 |
commit | 13f15e8113441c3fb8ba527c23a7db7ca7ad0d58 (patch) | |
tree | eb2f42386dfe69727f33d76c6f54842f877fcf1a /Platform/Marvell/Drivers | |
parent | 5d3bc1fdd28bcc300adb1290aae9f5e0f71546e9 (diff) | |
download | edk2-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')
-rwxr-xr-x | Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.c | 10 |
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) {
|