Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B4DF3C36010 for ; Tue, 8 Apr 2025 02:27:12 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6783182F5F; Tue, 8 Apr 2025 04:27:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=rock-chips.com header.i=@rock-chips.com header.b="H+m5PXwV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6319C82F6A; Tue, 8 Apr 2025 04:27:09 +0200 (CEST) Received: from mail-m32117.qiye.163.com (mail-m32117.qiye.163.com [220.197.32.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A0F3182F5A for ; Tue, 8 Apr 2025 04:27:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kever.yang@rock-chips.com Received: from [192.168.60.65] (unknown [103.29.142.67]) by smtp.qiye.163.com (Hmail) with ESMTP id 10ff7e306; Tue, 8 Apr 2025 10:27:01 +0800 (GMT+08:00) Message-ID: <657f2729-cd53-4840-a02c-d04bf5f46697@rock-chips.com> Date: Tue, 8 Apr 2025 10:27:01 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 03/14] pinctrl: rockchip: constify rockchip_pin_ctrl for PX30 To: Quentin Schulz , Simon Glass , Philipp Tomsich , Tom Rini Cc: Ilias Apalodimas , Jonas Karlman , Jagan Teki , u-boot@lists.denx.de, Quentin Schulz References: <20250129-rockchip-pinctrl-const-v1-0-450ccdadfa7e@cherry.de> <20250129-rockchip-pinctrl-const-v1-3-450ccdadfa7e@cherry.de> Content-Language: en-US From: Kever Yang In-Reply-To: <20250129-rockchip-pinctrl-const-v1-3-450ccdadfa7e@cherry.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkZH0tDVksaGkIZThlPHk8ZTVYVFAkWGhdVEwETFh oSFyQUDg9ZV1kYEgtZQVlKS0hVSUJVSk9JVU1MWVdZFhoPEhUdFFlBWU9LSFVKS0lPT09IVUpLS1 VKQktLWQY+ X-HM-Tid: 0a961338f49f03afkunm10ff7e306 X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Mj46Tio*PzIBA0MJNVYoOSo6 AxwaCw5VSlVKTE9PS0xCSUlPS09CVTMWGhIXVRAeDR4JVQIaFRw7CRQYEFYYExILCFUYFBZFWVdZ EgtZQVlKS0hVSUJVSk9JVU1MWVdZCAFZQUlLSk43Bg++ DKIM-Signature: a=rsa-sha256; b=H+m5PXwVfXDSvRi4YQTIGwKjCjxPKiUPvJpRcYqQISLIRqdHzUge5P58tGBzQPKvX7QN2WCfdJNtGDYML6hNLUn16kUFETLfgmazWPnaj5Op1kEaG1bW8onU8CwR020uW0lF2MNNKqeDDo/a7qdcp1918S9LDhbKSQ7yJOy+/a8=; c=relaxed/relaxed; s=default; d=rock-chips.com; v=1; bh=CvVLSGrSREnZPEHeIlWl+CDd21G7kUl4A9ygTxGPZZ4=; h=date:mime-version:subject:message-id:from; X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 2025/1/29 20:42, Quentin Schulz wrote: > From: Quentin Schulz > > There's no need to modify private data from the controller, so let's > make that struct const. > > Signed-off-by: Quentin Schulz Reviewed-by: Kever Yang Thanks, - Kever > --- > drivers/pinctrl/rockchip/pinctrl-px30.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pinctrl/rockchip/pinctrl-px30.c b/drivers/pinctrl/rockchip/pinctrl-px30.c > index cc7885bae40802eccfc2cad377727da9ee899139..4595d8a4a23fbf1299ab382fb92eca32527ae637 100644 > --- a/drivers/pinctrl/rockchip/pinctrl-px30.c > +++ b/drivers/pinctrl/rockchip/pinctrl-px30.c > @@ -324,7 +324,7 @@ static struct rockchip_pin_bank px30_pin_banks[] = { > ), > }; > > -static struct rockchip_pin_ctrl px30_pin_ctrl = { > +static const struct rockchip_pin_ctrl px30_pin_ctrl = { > .pin_banks = px30_pin_banks, > .nr_banks = ARRAY_SIZE(px30_pin_banks), > .grf_mux_offset = 0x0, >