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 89366C3ABAC for ; Tue, 6 May 2025 07:55:54 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F3F05826B2; Tue, 6 May 2025 09:55:51 +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="hkc/rkfm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B6D4B828C2; Tue, 6 May 2025 09:55:50 +0200 (CEST) Received: from mail-m49218.qiye.163.com (mail-m49218.qiye.163.com [45.254.49.218]) (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 28BEA800C1 for ; Tue, 6 May 2025 09:55:47 +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 14172c05d; Tue, 6 May 2025 15:55:43 +0800 (GMT+08:00) Message-ID: Date: Tue, 6 May 2025 15:55:42 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 06/13] pinctrl: rockchip: constify rockchip_pin_ctrl for RK3188 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-6-59bf93968ce7@cherry.de> Content-Language: en-US From: Kever Yang In-Reply-To: <20250131-rockchip-pinctrl-const-v2-6-59bf93968ce7@cherry.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVlDTxpPVktJGBlOGBpMQhlJH1YVFAkWGhdVEwETFh oSFyQUDg9ZV1kYEgtZQVlKS0hVSUJVSk9JVU1MWVdZFhoPEhUdFFlBWU9LSFVKS0lPT09IVUpLS1 VKQktLWQY+ X-HM-Tid: 0a96a497f19303afkunm14172c05d X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6PE06NBw4QjICDRc*Ew1OCB0# PDNPFBZVSlVKTE9NTkpDSk9OSUtOVTMWGhIXVRAeDR4JVQIaFRw7CRQYEFYYExILCFUYFBZFWVdZ EgtZQVlKS0hVSUJVSk9JVU1MWVdZCAFZQUlLTkM3Bg++ DKIM-Signature: a=rsa-sha256; b=hkc/rkfm+g0kSEiWBbmE41fD+VWqi2DwL6MtOrg6WOa7/lk1NFdhOatjtJJjscjD3jppmLh2YHjlLxbhxBPLYScsjzLqR3LVBUXS21UwuWh6M0EF8/mY5jiVjl/Biu6Y1qlY5xsPaHkhbeOAkz1KAoUjlpjPHM5EbLu6S1VEodw=; c=relaxed/relaxed; s=default; d=rock-chips.com; v=1; bh=w7sx9pWlCJeiq7JHiByiHcPzYwbB61vNsA5Tg5T4Ee4=; 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-rk3188.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3188.c b/drivers/pinctrl/rockchip/pinctrl-rk3188.c > index 83db51f66ae43c713a3f80a5442d1f8467a918e9..3a93db5622d70b85dafeea54e064d6df3551f35d 100644 > --- a/drivers/pinctrl/rockchip/pinctrl-rk3188.c > +++ b/drivers/pinctrl/rockchip/pinctrl-rk3188.c > @@ -105,7 +105,7 @@ static struct rockchip_pin_bank rk3188_pin_banks[] = { > PIN_BANK(3, 32, "gpio3"), > }; > > -static struct rockchip_pin_ctrl rk3188_pin_ctrl = { > +static const struct rockchip_pin_ctrl rk3188_pin_ctrl = { > .pin_banks = rk3188_pin_banks, > .nr_banks = ARRAY_SIZE(rk3188_pin_banks), > .grf_mux_offset = 0x60, >