Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2775215pxb; Tue, 23 Feb 2021 15:46:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwyP6NKjrkerjG9F+Gmb8LUUVR2zvBDZSjSVEjnUe82kfXioZ4vZ9z77Wyfkc2a9DhZuCLK X-Received: by 2002:a17:907:3e8b:: with SMTP id hs11mr2030012ejc.117.1614124013194; Tue, 23 Feb 2021 15:46:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614124013; cv=none; d=google.com; s=arc-20160816; b=HNIgMZdXHtS66OsougK2KyHwVWAR6SKW8rTo6ovAsMKxb58C/Za4PlWroRnIeGrenY 7qBldtXaIxI9EGLNA9AFyGEj/AB1+I+L1gJg/9P35XmiLnBFrwF2A4oF0qvn6+FIwTPE 6cpTZOOgYl89IsZzPUUrg4DEoZRqNTr9aWkBN85XtITaE0/VGTThmMTpFvXDw5TZq5y/ OUqmVKeyluHVSG5/3mZOYtpHZCt9Eu+lJOFahpX6ZSRJ0BSvlfuGPatJvHsUNuc38S3z QmuuYiGUgvl8RlG007GTmfaYd7TvXNJwOM7Cyxzjnh8dj2K3awyZdc3rgRQS+xPtjRA1 QnwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=J3RcjDgUofn/arkYorIIxpKRHahNbVeoVvuTumCNv2g=; b=itLNJ7AGpaVeAkag2qqAxPYvetHsni22ezhUdMTwJdVXmXc5ckCXvizIepTgWC11pI zrfS2xn3IjV4A+Skq/xQew700tcbDKfytVvQ1P7VmOpUiU8QLZwaYXVSX1SPY/ykTwvi pU2D+jIndUPemzvYj4NmolyvIghvaWthyE7KhQfRAKEy6M843JAY9K96B19/hTaoBMDj tVpH+skN73KuA3FIe/+9fnuHhlcKxx0AZ6Zm6MFwjdyYBq4EozX5MGVpW9YkJfD0jVKX 7OOWPH+lviEJdUsUl2LVU9T4as6usGPr7IACEilsCfsZNJVKtoIysjPZpTZzbLWe3OBR n80w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bx16si33877edb.220.2021.02.23.15.46.07; Tue, 23 Feb 2021 15:46:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233721AbhBWTkY (ORCPT + 99 others); Tue, 23 Feb 2021 14:40:24 -0500 Received: from alexa-out.qualcomm.com ([129.46.98.28]:29750 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232290AbhBWTkW (ORCPT ); Tue, 23 Feb 2021 14:40:22 -0500 Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 23 Feb 2021 11:39:25 -0800 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/AES256-SHA; 23 Feb 2021 11:39:24 -0800 X-QCInternal: smtphost Received: from mdalam-linux.qualcomm.com ([10.201.2.71]) by ironmsg02-blr.qualcomm.com with ESMTP; 24 Feb 2021 01:09:08 +0530 Received: by mdalam-linux.qualcomm.com (Postfix, from userid 466583) id 62F2B20E1F; Wed, 24 Feb 2021 01:09:08 +0530 (IST) From: Md Sadre Alam To: miquel.raynal@bootlin.com, mani@kernel.org, boris.brezillon@collabora.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Cc: mdalam@codeaurora.org, sricharan@codeaurora.org Subject: [PATCH 3/5] mtd: rawnand: qcom: Rename parameter name in macro Date: Wed, 24 Feb 2021 01:08:59 +0530 Message-Id: <1614109141-7531-3-git-send-email-mdalam@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1614109141-7531-1-git-send-email-mdalam@codeaurora.org> References: <1614109141-7531-1-git-send-email-mdalam@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rename the parameters of the nandc_set_read_loc() macro to avoid the confusion between is_last_read_loc which is last location in a read code word and last_cw which is last code word of a page data. Signed-off-by: Md Sadre Alam --- drivers/mtd/nand/raw/qcom_nandc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qcom_nandc.c index 9a890ef..f1aafee 100644 --- a/drivers/mtd/nand/raw/qcom_nandc.c +++ b/drivers/mtd/nand/raw/qcom_nandc.c @@ -181,11 +181,11 @@ #define ECC_BCH_4BIT BIT(2) #define ECC_BCH_8BIT BIT(3) -#define nandc_set_read_loc(chip, reg, offset, size, is_last) \ +#define nandc_set_read_loc(chip, reg, cw_offset, read_size, is_last_read_loc) \ nandc_set_reg(chip, NAND_READ_LOCATION_##reg, \ - ((offset) << READ_LOCATION_OFFSET) | \ - ((size) << READ_LOCATION_SIZE) | \ - ((is_last) << READ_LOCATION_LAST)) + ((cw_offset) << READ_LOCATION_OFFSET) | \ + ((read_size) << READ_LOCATION_SIZE) | \ + ((is_last_read_loc) << READ_LOCATION_LAST)) /* * Returns the actual register address for all NAND_DEV_ registers -- 2.7.4