From 13f15e8113441c3fb8ba527c23a7db7ca7ad0d58 Mon Sep 17 00:00:00 2001 From: Marcin Wojtas Date: Mon, 25 Sep 2017 03:16:13 +0200 Subject: 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 Reviewed-by: Leif Lindholm --- Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Platform/Marvell/Drivers/Spi') 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) { -- cgit v1.2.3