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 01CB5C36010 for ; Tue, 8 Apr 2025 03:17:44 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1814683156; Tue, 8 Apr 2025 05:17:33 +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="L1M0jKjY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1A76682CEA; Tue, 8 Apr 2025 05:17:32 +0200 (CEST) Received: from mail-m15567.qiye.163.com (mail-m15567.qiye.163.com [101.71.155.67]) (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 8E5B7830EE for ; Tue, 8 Apr 2025 05:17:29 +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 [172.16.12.67] (unknown [58.22.7.114]) by smtp.qiye.163.com (Hmail) with ESMTP id 1101c6857; Tue, 8 Apr 2025 11:17:24 +0800 (GMT+08:00) Message-ID: <95148d7a-9e9a-40a2-bfce-0813f3a36db2@rock-chips.com> Date: Tue, 8 Apr 2025 11:17:24 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 14/14] pinctrl: rockchip: constify rockchip_pin_ctrl for RV1108 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-14-450ccdadfa7e@cherry.de> Content-Language: en-US From: Kever Yang In-Reply-To: <20250129-rockchip-pinctrl-const-v1-14-450ccdadfa7e@cherry.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFDSUNOT01LS0k3V1ktWUFJV1kPCRoVCBIfWUFZQ00ZGVYaS0JNTUhDTEtKHUhWFRQJFh oXVRMBExYaEhckFA4PWVdZGBILWUFZTkNVSUlVTFVKSk9ZV1kWGg8SFR0UWUFZT0tIVUpLSU9PT0 hVSktLVUpCS0tZBg++ X-HM-Tid: 0a961367135503afkunm1101c6857 X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Mkk6Fww6FzJKH0JDPysVPiEV AiswCTFVSlVKTE9PS0NJSU9NTUNPVTMWGhIXVRAeDR4JVQIaFRw7CRQYEFYYExILCFUYFBZFWVdZ EgtZQVlOQ1VJSVVMVUpKT1lXWQgBWUFJS0xDNwY+ DKIM-Signature: a=rsa-sha256; b=L1M0jKjYlJgEweYE17qmw/OYLCw4cf+Y3bnL/GMo4liKIsAgWK2pnpM21/tGE+iNiN3FQapLv1aVJmLcJJJncr1B2N3ckP55wozIHus58YgYCkN/pBYKCzbCjZDH0FEsgoKhP1iEUpJ16k4/s3tTCK+9Xrj6lbFg0wistOI+FC4=; c=relaxed/relaxed; s=default; d=rock-chips.com; v=1; bh=ot7e37PONvIaLLEIIe0JP5hXPR0V1rbT+cEelVI13S0=; 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-rv1108.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pinctrl/rockchip/pinctrl-rv1108.c b/drivers/pinctrl/rockchip/pinctrl-rv1108.c > index 3eff5f59598c0d9ea9393a1b5e1a82efa8449eb6..780da1e946ea6361fb4c3cad0299296051cee77a 100644 > --- a/drivers/pinctrl/rockchip/pinctrl-rv1108.c > +++ b/drivers/pinctrl/rockchip/pinctrl-rv1108.c > @@ -263,7 +263,7 @@ static struct rockchip_pin_bank rv1108_pin_banks[] = { > PIN_BANK_IOMUX_FLAGS(3, 32, "gpio3", 0, 0, 0, 0), > }; > > -static struct rockchip_pin_ctrl rv1108_pin_ctrl = { > +static const struct rockchip_pin_ctrl rv1108_pin_ctrl = { > .pin_banks = rv1108_pin_banks, > .nr_banks = ARRAY_SIZE(rv1108_pin_banks), > .grf_mux_offset = 0x10, >