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 E2490C3ABBC for ; Tue, 6 May 2025 07:57:05 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C629582A0A; Tue, 6 May 2025 09:57:01 +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="hGl2NCW2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 70BFE829E7; Tue, 6 May 2025 09:57:01 +0200 (CEST) Received: from mail-m3288.qiye.163.com (mail-m3288.qiye.163.com [220.197.32.88]) (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 ED75A82935 for ; Tue, 6 May 2025 09:56:58 +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 14174d142; Tue, 6 May 2025 15:56:54 +0800 (GMT+08:00) Message-ID: <98cf9fe4-2053-4c6f-bfe0-3de944507a87@rock-chips.com> Date: Tue, 6 May 2025 15:56:54 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 12/13] pinctrl: rockchip: constify rockchip_pin_ctrl for RK3399 To: Quentin Schulz , Simon Glass , Philipp Tomsich , Tom Rini Cc: Ilias Apalodimas , Jonas Karlman , Jagan Teki , u-boot@lists.denx.de, Quentin Schulz References: <20250131-rockchip-pinctrl-const-v2-0-59bf93968ce7@cherry.de> <20250131-rockchip-pinctrl-const-v2-12-59bf93968ce7@cherry.de> Content-Language: en-US From: Kever Yang In-Reply-To: <20250131-rockchip-pinctrl-const-v2-12-59bf93968ce7@cherry.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkZQ0MYVk5DTkoYQh5MH04aGVYVFAkWGhdVEwETFh oSFyQUDg9ZV1kYEgtZQVlKS0hVSUJVSk9JVU1MWVdZFhoPEhUdFFlBWU9LSFVKS0lPT09IVUpLS1 VKQktLWQY+ X-HM-Tid: 0a96a499068a03afkunm14174d142 X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6MzI6Cgw4LTIBIxcwEwM0SRdC DkkwFENVSlVKTE9NTkpDSUpNSkNIVTMWGhIXVRAeDR4JVQIaFRw7CRQYEFYYExILCFUYFBZFWVdZ EgtZQVlKS0hVSUJVSk9JVU1MWVdZCAFZQUlLT083Bg++ DKIM-Signature: a=rsa-sha256; b=hGl2NCW21Fa2IVvgu6ChQ/1yFB76Ev2nOraKVE4qivYrpYcx8fqCFT/B9Yv/ByuxxjXiCtWim0bp+dsHGXsS4WFSdp8cDMWh7cMy+jOyhnEBgdYdFM3VD9Cq7GFm17m8hZQV8PHltEhk6IqPqZ9lFknIh7aG381T6xv1/cA1aGs=; c=relaxed/relaxed; s=default; d=rock-chips.com; v=1; bh=bxOhxL2UJ//Y2MwpIJ+iB/HtZvZBKHNmUIuUhliGOfk=; 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/31 18:31, 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-rk3399.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3399.c b/drivers/pinctrl/rockchip/pinctrl-rk3399.c > index b7a5092c032ba3bac0889921d9421bf0d3cd7277..928ed59aec6903fafa97ef6c3f95ad22422475fc 100644 > --- a/drivers/pinctrl/rockchip/pinctrl-rk3399.c > +++ b/drivers/pinctrl/rockchip/pinctrl-rk3399.c > @@ -279,7 +279,7 @@ static struct rockchip_pin_bank rk3399_pin_banks[] = { > ), > }; > > -static struct rockchip_pin_ctrl rk3399_pin_ctrl = { > +static const struct rockchip_pin_ctrl rk3399_pin_ctrl = { > .pin_banks = rk3399_pin_banks, > .nr_banks = ARRAY_SIZE(rk3399_pin_banks), > .grf_mux_offset = 0xe000, >