Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2492255pxb; Tue, 23 Feb 2021 08:17:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQ957+jY4vJ6iaeIgfpgrfhHlNGTBffzRE7ysyOxmKNKewK8X5LNecgSLhkqKgltVihXDD X-Received: by 2002:a17:906:2a06:: with SMTP id j6mr25755929eje.164.1614097065872; Tue, 23 Feb 2021 08:17:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614097065; cv=none; d=google.com; s=arc-20160816; b=O2zHZiAhZYmeRKEUhQ9QHGWTq+F6ziPs0BLsV4ZInCkE+1wbKFtlJxh4tV/AX4Ugvs nhf4aq23z1bDM4Pt7WqIVJ/CyHb8XaQsOZFNZrdaADL5eSqK04BXrA6w730ys1Tt5J4d bgbxyqE+c8iLu9NFdloJ1uzWPPVA1pVyqaK3aP+Wx+zglJWvvXwHTIZuU7o0soBoDhpr 6+8cOVK06nwFDtu1u2RCc9zDgKdAdT7aKs2FBVFwlanKpx7/WD2vg2ZWelAGKl5/7WLX I/+XYMRuxg0zPmVz6yW/3403V0jhoReqimIUVpK2hNVXl95leQAgZRo3cHLOciWIaQb4 2J0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=Y2H0s6t2J7/bIQW6eDc/2PPopEixbWZEw+7iq0NVttI=; b=q+gz7fjWuZShap5VN3Tu1UmqdLMVDJL/sHFU5vQnJHokQcvYCNwcnoagYIzdt8qmXY a/cysH2U8F6u6qtnffhkdcKKhbs9HkuNKyIPXCiv1gD7CWSyj9pjLXdYebpW3la8/UMh RqAhBMYqtD/RgL9maOSw6YgZYAZzHg7Rp3/fKSEA+sTutGlPsI80GdxRhEWTyTN5nb/8 P/VQ+tsfbWeJt3z91sOfilx5LVzr2+D+U5hdNJgCdPvVHta005/yhXUYW4viorQXzHGk 5nWyHzg0dZ33lmclhwZpfm5dm1tr7TjxedN0Gd26h4OjREGi5i5nqyb/rJ3D7bI3Mkoa 4oPg== 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 g18si8014296edu.193.2021.02.23.08.17.21; Tue, 23 Feb 2021 08:17:45 -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 S233544AbhBWQP7 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 23 Feb 2021 11:15:59 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:41647 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233507AbhBWQP6 (ORCPT ); Tue, 23 Feb 2021 11:15:58 -0500 X-Originating-IP: 86.210.203.113 Received: from xps13 (lfbn-tou-1-972-113.w86-210.abo.wanadoo.fr [86.210.203.113]) (Authenticated sender: miquel.raynal@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id E31DCC0002; Tue, 23 Feb 2021 16:15:07 +0000 (UTC) Date: Tue, 23 Feb 2021 17:15:06 +0100 From: Miquel Raynal To: Md Sadre Alam Cc: mani@kernel.org, boris.brezillon@collabora.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd: rawnand: qcom: Rename parameter name in macro Message-ID: <20210223171506.144c982e@xps13> In-Reply-To: <1613979342-23572-1-git-send-email-mdalam@codeaurora.org> References: <1613979342-23572-1-git-send-email-mdalam@codeaurora.org> Organization: Bootlin X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Md Sadre Alam wrote on Mon, 22 Feb 2021 13:05:42 +0530: > 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. " Rename the parameters of the nandc_set_read_loc() macro to avoid the confusion between is_last_read_loc which and which . > > 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 Thanks, Miquèl