Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2805857rdb; Mon, 4 Dec 2023 08:03:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IELtdn+0S7Wmb+UCxYWtYa9s+AEnz+6dPoAH+zZl9pF6pkCqdyNlwouA7yDlGK3DYvbnxlc X-Received: by 2002:a17:902:7106:b0:1cf:ffd7:7425 with SMTP id a6-20020a170902710600b001cfffd77425mr3601144pll.41.1701705781144; Mon, 04 Dec 2023 08:03:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701705781; cv=none; d=google.com; s=arc-20160816; b=Tpk1brnmJ0y8jThdM8D+12yijwqcGtHkkHPdMpYgL7BoQyrs/C3fgOZeZfuxYccWyv T4nMP58+bXUisD+/QemQ27nN6vS2Oq9PXGwSJf6Aze78gciI915WQFUiKC19kPr5+ql4 ONQ01yIFD1Ityn5n3e69EDGiC8sZXMbIigsV24oiHUN+X7l6+3x47mt0ttghamEKlxBp GBnBT1AjoGFm9EXymwR8OGm7D15GXtIjS2akqInqJdwR5dp4A+I/WENFcQYvwv9V4S0k AudTvIe021A/e0e9eH4W0FNsDLp59kRLO77S9vqyLuLRE+OpgtGNox6SlSWbioK08vih jnwg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7zgdmuCW7K1LG3mDqjKSlI+CNXZbDMbwE86Bifysuww=; fh=bb00IWANzUrbEims5abAG2NrFRW6cV0KBtrUyXvAr8o=; b=pwVb9wyha1k0ZW7Oa8eOfMjjOquWCvFp+OL87O4bwdE3S8hclJbzIMHoQnAHumgfN7 odbhTMotXGTlwxPblvyqozkn6DhAGP4w0iYe27lN51ymX3uSE68zjQtNDAYx9OSyyImv nHuTLVnmvqCVTZHp4bYG2N7qPldFXJ8sZFvxZ4aGFrTUuBUXyRnEs0oXHhW3i1FfG0T6 /5CBa35Wqr/r62y94d8Ggfk59dRUJYSYxRYIGZrCfAvGafpbNkxYhNg3qf1fq7KUzsDR 1o/fFvIPRfzkKm+lTZgWAZypFiEkeHjrpsT09TDd7krbj6VBm9zr2k3Li+Xr1n72GZD8 hATQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bkMbRs1U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id a18-20020a656412000000b005c67196cbf5si3250607pgv.330.2023.12.04.08.03.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 08:03:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bkMbRs1U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 48F3B80401F5; Mon, 4 Dec 2023 08:02:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343869AbjLDQCW (ORCPT + 99 others); Mon, 4 Dec 2023 11:02:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234633AbjLDQCU (ORCPT ); Mon, 4 Dec 2023 11:02:20 -0500 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4FA783; Mon, 4 Dec 2023 08:02:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701705747; x=1733241747; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=369hT2RdaeQdkkRIYwcHHDkywQmjX9HmaXJZaM+vdg4=; b=bkMbRs1UH2vRg8FNuswtjS7nggOZIIhSmU88yvQb1FJWVKqmdl6MbtWx 1wLgXNTELjyJFfouBmEybAmRfjYi3BbvyZkkLYdJx/NVSqbSB1HuNrVAl CI0QsCfr7zwhK9V1rwFlR3KQ3NwQHkxZfpfUAYuhYe2Xci5iEHVHpFiAQ Bk1YibZWI2zRvv3bvwtM3vvuncwyjDuUUgFtm5QAmgIAC+OTnhHPbR98s weWRjGeE7ETn3M4LPbCkcJLMhtKdszEzivYV9zdFCwXOwLvXeqGqzX3xL lYLpJbufsZL0F/C5wNVVv5sK9pPO8JyDnXMpzbtiO/1s8xrFCWXXtiiUW w==; X-IronPort-AV: E=McAfee;i="6600,9927,10914"; a="807859" X-IronPort-AV: E=Sophos;i="6.04,250,1695711600"; d="scan'208";a="807859" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2023 08:00:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10914"; a="774297197" X-IronPort-AV: E=Sophos;i="6.04,250,1695711600"; d="scan'208";a="774297197" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga007.fm.intel.com with ESMTP; 04 Dec 2023 08:00:44 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 02DB6315; Mon, 4 Dec 2023 18:00:42 +0200 (EET) From: Andy Shevchenko To: Linus Walleij , Andy Shevchenko , =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= , Geert Uytterhoeven , Claudiu Beznea , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, linux-renesas-soc@vger.kernel.org Cc: Lakshmi Sowjanya D Subject: [PATCH v1 1/5] pinctrl: renesas: Mark local variable with const in ->set_mux() Date: Mon, 4 Dec 2023 17:56:32 +0200 Message-ID: <20231204160033.1872569-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 In-Reply-To: <20231204160033.1872569-1-andriy.shevchenko@linux.intel.com> References: <20231204160033.1872569-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 04 Dec 2023 08:02:54 -0800 (PST) We are not going to change pins in the ->set_mux() callback. Mark the local variable with a const qualifier. While at it, make it also unsigned. Signed-off-by: Andy Shevchenko --- drivers/pinctrl/renesas/pinctrl-rzg2l.c | 2 +- drivers/pinctrl/renesas/pinctrl-rzv2m.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/renesas/pinctrl-rzg2l.c b/drivers/pinctrl/renesas/pinctrl-rzg2l.c index aed59c53207c..68fcc2a4efbc 100644 --- a/drivers/pinctrl/renesas/pinctrl-rzg2l.c +++ b/drivers/pinctrl/renesas/pinctrl-rzg2l.c @@ -273,7 +273,7 @@ static int rzg2l_pinctrl_set_mux(struct pinctrl_dev *pctldev, struct function_desc *func; unsigned int i, *psel_val; struct group_desc *group; - int *pins; + const unsigned int *pins; func = pinmux_generic_get_function(pctldev, func_selector); if (!func) diff --git a/drivers/pinctrl/renesas/pinctrl-rzv2m.c b/drivers/pinctrl/renesas/pinctrl-rzv2m.c index 21d7d5ac8c4a..eb304fab1796 100644 --- a/drivers/pinctrl/renesas/pinctrl-rzv2m.c +++ b/drivers/pinctrl/renesas/pinctrl-rzv2m.c @@ -165,7 +165,7 @@ static int rzv2m_pinctrl_set_mux(struct pinctrl_dev *pctldev, struct function_desc *func; unsigned int i, *psel_val; struct group_desc *group; - int *pins; + const unsigned int *pins; func = pinmux_generic_get_function(pctldev, func_selector); if (!func) -- 2.43.0.rc1.1.gbec44491f096