From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (no SPF record) identity=mailfrom; client-ip=2a00:1450:400c:c0c::231; helo=mail-wr0-x231.google.com; envelope-from=mw@semihalf.com; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x231.google.com (mail-wr0-x231.google.com [IPv6:2a00:1450:400c:c0c::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2725A20945B97 for ; Sun, 24 Sep 2017 18:43:04 -0700 (PDT) Received: by mail-wr0-x231.google.com with SMTP id a43so5221785wrc.0 for ; Sun, 24 Sep 2017 18:46:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=K8mX5xoTyZpcFnGe6cpXlZfOu/Ml+lzDUmNcqKweFLc=; b=WVNtUAKzeRkWXn/YbVwimTcANbvDPWv13Jl5/cmJxelRMC3GUXb6PrykmdkZAeoHl/ jC47GnBtGnbGz/aTFF3L6T0/xAey4I8HMh7ZlCvF/Nu4dXBmNKHG9n9hxuPkYpJFKdVC kO/pnELWxMvsytgwmap4alzufDQEdt/2M+/H1F6AQSPolmupGZxmpoqlIOAbH2cIf0eA tIffops6O7J+v0PYLnBTASuWfstG88bQpcPmYPWiMA8pCOg2TE52HgJGeSKrdTx8rRUZ Cf6S+cTiWT/oCGxfsTkorVVhcvlRiMZmXeU7zHUkA91b9YoPeHVR2sRUVtKpN3bCQfp3 ZFkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=K8mX5xoTyZpcFnGe6cpXlZfOu/Ml+lzDUmNcqKweFLc=; b=UCnRQ0F9UCf7rbGs8DFz/2mn/L/3/1ixC/YbephwVHskelQBPBKyh2NAAKnQSwjahu FKn+GRgSzU5ebo14MSH++hkbDCyNDyuTDHsTFE/QTIiC+LOMCVvv7A0Cz72FXk0Y9k5V suI2ghCKs+Pr5u70dtnm/6yXgD2g2Mm3JaaWbCjPClAtdT7TvEqgEZxD54vZCumrTezl t8vbcztzhDN4xsJUF8UF28WdQMbiNJWCzXOYNXvhsufa4NgjA7LiisN6fJhUm37XPgmp JuYIS7T/iaJjTI4OxvUo+qTQ9d6mSHE3GZN+2cgoL81RW8P9wk5AP9rh8eahLAahjNQI ammg== X-Gm-Message-State: AHPjjUiQLszU7i6BX0pL5rlb6OlRWCXv/loDo9rPJ9fKfUa4EZ4Z3mOP 0XC9FsDGrdpUKMVmouICqnIx41AlYzk= X-Google-Smtp-Source: AOwi7QBRSzRvHXneaG9HJ0jsvZ9gN2NGIWJL1250tzAmUeyZhwLv6MS4Fib38K/bqPHPl8b50usTig== X-Received: by 10.46.21.84 with SMTP id 20mr1764095ljv.168.1506303973481; Sun, 24 Sep 2017 18:46:13 -0700 (PDT) Received: from enkidu.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id f16sm809520lfe.66.2017.09.24.18.46.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Sep 2017 18:46:12 -0700 (PDT) From: Marcin Wojtas To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, nadavh@marvell.com, neta@marvell.com, kostap@marvell.com, jinghua@marvell.com, agraf@suse.de, mw@semihalf.com, jsd@semihalf.com Date: Mon, 25 Sep 2017 03:51:59 +0200 Message-Id: <1506304319-8620-11-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1506304319-8620-1-git-send-email-mw@semihalf.com> References: <1506304319-8620-1-git-send-email-mw@semihalf.com> Subject: [platforms: PATCH 10/10] Marvell/Drivers: MvSpiFlash: Minor style fix X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Sep 2017 01:43:04 -0000 This patch correct style of two variables to the camel-case version. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas --- Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.c b/Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.c index c411296..c7e0221 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) { -- 1.8.3.1