Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1382068pxb; Sun, 21 Feb 2021 23:38:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyNHHcsLweRvDGSokNGUIsh1r5iLn0HmmmaBOUy+pZT+MlJY/+yXI1bMm/dySBckmmOq+Bs X-Received: by 2002:a05:6402:40c6:: with SMTP id z6mr20872713edb.360.1613979519925; Sun, 21 Feb 2021 23:38:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613979519; cv=none; d=google.com; s=arc-20160816; b=SmeR6d67M4ZRhdqcEZVqTELdv2evDC0OG35wIZd9/5s3g7498RrO74iZQ/sXz+dAh2 v7CL9xDJx9qdFZj+QCM5DJLjiiuxh71d/JgDE8Gw4qPfhZ1YeUhqQ8D8jqhTcJhVbUoT IEAtWCOeMavInh3xn+gaHPhiRe5quoV95CbquWcdBGBPzcPhqGcIkbnMYW6NEUHDBgDI LdMP/h8IOAUqYZkE26tUSsoUglwcatbo1bt+XE+13j1CRQ057XOZUjZNXhVVsPZ8KJqr rk1eHHfRa7qThFGYEbWte4pCLj4QPRok11arfcU+Q2TYRRCdn6VfloLQr8p4Eo5piFIn 30KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=GD17JOuzmlwdQpydjCKMQ/zUNTzc6jvUg067Px9qhpo=; b=RfKg9Lvibu9M1cFWZBsMcoCpwt3BGcFkkLYZOSO39D1JODA/UCI4YaFoeqGHUXlYB3 WfxClXtBPu4AaGqZU3lQqk76LJjBv8gs8P5OyQvA0IFTu0CXPMihGWjKTwL7nHe30gvO MgQsK34hLPOVtM+tom3HQC8XmN8pyUqfrET26dMdrXxSIuDmVmuP6NjBEOsoC8/HXLX0 CA9DhJkDDO2LY85fP3LX+Zrd/heAxTlythqZcu6aQqFyDf24mtlJsaDVbYO1gaZvM0Il ZkGm2UGaJeFKO4UR5Hm4QHMI9mytKuSKolyP/FD3m73mzlUGUwz9w0ptqJzcR/Dv684K UoXQ== 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 bu13si10957221ejb.588.2021.02.21.23.38.17; Sun, 21 Feb 2021 23:38:39 -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 S230138AbhBVHgp (ORCPT + 99 others); Mon, 22 Feb 2021 02:36:45 -0500 Received: from alexa-out.qualcomm.com ([129.46.98.28]:24324 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230042AbhBVHgn (ORCPT ); Mon, 22 Feb 2021 02:36:43 -0500 Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 21 Feb 2021 23:36:03 -0800 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 21 Feb 2021 23:36:01 -0800 X-QCInternal: smtphost Received: from mdalam-linux.qualcomm.com ([10.201.2.71]) by ironmsg01-blr.qualcomm.com with ESMTP; 22 Feb 2021 13:05:46 +0530 Received: by mdalam-linux.qualcomm.com (Postfix, from userid 466583) id 8E8BC21DA8; Mon, 22 Feb 2021 13:05:44 +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: Md Sadre Alam Subject: [PATCH] mtd: rawnand: qcom: Rename parameter name in macro Date: Mon, 22 Feb 2021 13:05:42 +0530 Message-Id: <1613979342-23572-1-git-send-email-mdalam@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This change will rename parameter name in macro nandc_set_read_loc().renamed parameter names are cw_offset, read_size, is_last_read_loc. Sinc in QPIC V2 on-wards there is separate location register to read last code word, so to just differnciate b/w is_last_read_loc from last_cw this change needed. 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 4189a7f..bfefb4e 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(nandc, reg, offset, size, is_last) \ +#define nandc_set_read_loc(nandc, reg, cw_offset, read_size, is_last_read_loc) \ nandc_set_reg(nandc, 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