From nobody Thu Dec 26 13:07:07 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1506304001460837.4719958241435; Sun, 24 Sep 2017 18:46:41 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 7B2AC21E945FA; Sun, 24 Sep 2017 18:43:06 -0700 (PDT) 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) 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) X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; 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 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) From: Marcin Wojtas To: edk2-devel@lists.01.org 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: [edk2] [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: , Cc: jinghua@marvell.com, ard.biesheuvel@linaro.org, agraf@suse.de, leif.lindholm@linaro.org, nadavh@marvell.com, neta@marvell.com, kostap@marvell.com MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" 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/M= arvell/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 =3D CMD_READ_STATUS; UINT8 State; UINT32 Counter =3D 0xFFFFF; - UINT8 poll_bit =3D STATUS_REG_POLL_WIP; - UINT8 check_status =3D 0x0; + UINT8 PollBit =3D STATUS_REG_POLL_WIP; + UINT8 CheckStatus =3D 0x0; =20 CmdStatus =3D (UINT8)PcdGet32 (PcdSpiFlashPollCmd); if (CmdStatus =3D=3D CMD_FLAG_STATUS) { - poll_bit =3D STATUS_REG_POLL_PEC; - check_status =3D poll_bit; + PollBit =3D STATUS_REG_POLL_PEC; + CheckStatus =3D PollBit; } =20 // Send command @@ -127,7 +127,7 @@ MvSpiFlashWriteCommon ( SpiMasterProtocol->Transfer (SpiMasterProtocol, Slave, 1, NULL, &State, 0); Counter--; - if ((State & poll_bit) =3D=3D check_status) + if ((State & PollBit) =3D=3D CheckStatus) break; } while (Counter > 0); if (Counter =3D=3D 0) { --=20 1.8.3.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel