From patchwork Wed Jul 3 09:50:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13721614 X-Patchwork-Delegate: neil.armstrong@linaro.org 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8F54BC30653 for ; Wed, 3 Jul 2024 09:50:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UbjvxEMqCedb3xHbXXdx6aprcDk24jtk49YbOgm3O3I=; b=TPHNv7geYYIxKh NH4i+mh/XHSxFrMGQTlixMMr64ZhrqQ3YcqLhVVDxBlI9CN7jZhZviAE1LMDxBBpMvD1UD+82rr3r PN+uJqC1cDJ9TQpPTv0/3gMdR61o5mWj9fqqHEZWZL6dTXVFyUJbrZFX5L8sTZx8YRUOeNkJ2BIjw J1YsPntsO1VVu9dQZI2AqB7UAjRH5VADz6g0QhRiR4n7DPtu1tl2KB9AX2Lu32jlUzifpo3co46w3 2eQ9HE9hzxivoGMT0MXYw8NrVhpx/rFwdbNJRu4Y9SsE2YUTwz5EUgH+NOwb5Uawo8T/4xNJMmmI4 xc7KgeZJhs1PuMWof5Fg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwdR-00000009c1q-0GKr; Wed, 03 Jul 2024 09:50:45 +0000 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwdC-00000009brB-09Y4; Wed, 03 Jul 2024 09:50:31 +0000 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-58bac81f40bso2226555a12.1; Wed, 03 Jul 2024 02:50:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720000228; x=1720605028; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=tjxB4KcUaWQh3jg9jUAlCf5iQpZ5CojbNVfQpTYS6OI=; b=GO05dRa+BVZNFq0ijHV38zkTFLLZJ7xBuYYDuWxMHASnKj4ijLIDKM6/nQA03rFrdS fSSsFkvxhAEJvEoiuYEM0Ff2LF+1CWmA8V/tjU5g4LMzbADwsDGiFkTS+DBskBLlM/qH 8HMdvsiO+084ZGnEytBKcHrzEwZAhJj0gPtW92PmWkGrXeq6egZ1enF6tXxgUN97GzGr sWqA0FCQ+j43jm4mnA13X40c7y/jX8VoZfkJBFuuoSfRXkBXKiL40/znwonmaoh2tmA0 ynpSk7eS3VvyFkKm8eC9ScRMoaBiogHh5tB9z8v/9kLFb1CKccXD0yfb+DMBfBK22PsZ mSKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720000228; x=1720605028; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tjxB4KcUaWQh3jg9jUAlCf5iQpZ5CojbNVfQpTYS6OI=; b=wnWlJ6QpCmZTPy5iDG1al/Y+7Y7QdewrCh80PSCrbKj8s67NCLg82Y58/hKHI23smF uSQwg/jpBRt1OtrRiOEnHeRoWE/jILhiF87o4ZqCcaYcMbxXgwh0uS9V5BYYLVLedEAp 9SOLzDYsDSGbsaISCzo30SD1Mvv+2zUEMlMpAkXAaLL+a+E3bFUD80UnhMiK+4EeUljP MWHvRF5CI5kkXsQ+j8MizpEplp6owZ2+6VveFXYozgFCk+9kfiKeA8juPOF/nAgPDJFw Ya16YRkqBZS7mtdGpR4yx1VQJFAjquGOYpaYcXNGzU5DT40bTMIrdBQdkTDN6dgRXrYp japw== X-Forwarded-Encrypted: i=1; AJvYcCWj5/Qsca5zCy7x6Pb29bTGQulP45oguc9FzAgZdhXlvWb624U7VE2gXiSqIy7bXzBfBQZVsV4cAQpz2PixduEvOe7YrfwpIHw6uBXIzG2mxB8+JTY= X-Gm-Message-State: AOJu0YxAaMpotikabHyhFwo+BFZrW54fyxL1M2uwP3FY86UKUKL+Tw45 mPA7TL2Fmwo4Rd3fGQsWJQ5EGYRG9kq4ghdCpKg2d0Eq06apvAtJ X-Google-Smtp-Source: AGHT+IEu9wfxofZHAUHv13UpYXfpE/fqLZpj+TDjnY0WusdrAi5dE3xvADca15im/1AFnBZLLs17Ag== X-Received: by 2002:a05:6402:84f:b0:57c:947c:52f6 with SMTP id 4fb4d7f45d1cf-587a0a0e63fmr8194901a12.26.1720000228030; Wed, 03 Jul 2024 02:50:28 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58b4a97b1f3sm2082130a12.18.2024.07.03.02.50.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 02:50:27 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 11:50:14 +0200 Subject: [PATCH 01/10] clk: meson: a1: peripherals: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240703-clk-const-regmap-v1-1-7d15a0671d6f@gmail.com> References: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> In-Reply-To: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Martin Blumenstingl , Vladimir Zapolskiy , Bjorn Andersson , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michal Simek Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720000225; l=786; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=zUIhNaJB9vytQBaKjIhITCcZRZzf530pVUJ7sHGUvaM=; b=AiazcxboMt3P+LY+hRRrue83xM/NS7alWnXU3z+f1NiZvmZK4tScX4flzKSP5LfXviBEcnrjx ODWLulzhRzcCq5gs/K0LdUZbMa7Vo+Mvv37YJvGBTZSCyUOk8z6bFL1 X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240703_025030_113166_76CFB528 X-CRM114-Status: GOOD ( 11.56 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org `a1_periphs_regmap_cfg` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: Neil Armstrong Reviewed-by: Dmitry Rokosov --- drivers/clk/meson/a1-peripherals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/a1-peripherals.c b/drivers/clk/meson/a1-peripherals.c index 99b5bc450446..728ad13924ad 100644 --- a/drivers/clk/meson/a1-peripherals.c +++ b/drivers/clk/meson/a1-peripherals.c @@ -2183,7 +2183,7 @@ static struct clk_regmap *const a1_periphs_regmaps[] = { &dmc_sel2, }; -static struct regmap_config a1_periphs_regmap_cfg = { +static const struct regmap_config a1_periphs_regmap_cfg = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4, From patchwork Wed Jul 3 09:50:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13721615 X-Patchwork-Delegate: neil.armstrong@linaro.org 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F3C68C31D97 for ; Wed, 3 Jul 2024 09:51:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5orDg/3reeGaRPdWC79V68VEnNol/8M6MBHxCSFPnww=; b=N978/GnEQWjgbu SssXw8RKYg0l8WznxCV/0lV66JPMd1Y9gu8B4Q/i1theOvLwEKT3KH6tqvsvTehsMF01y8uVg5YzN DFhd0wzvlH9u9I07//UlEXsY5WsZzUBuFY54BKgJqfaFSEyZW4RFYTOnR/oRmvjreyL8dsVYehVna Su5Wfo0yiG+AZ8U1nSXyCO3yWCOQtVjM098OgCBrW7pelNVYC5CyVAGoYFud51/zCUW0GcB2HpJMg dJkTVcG851BqLw0GiyiiYzAs13+GBN5caztDsUAyGlM41y+gFO2cf/afUdaBo8PL0L37GZFdfKqRw j3iGXaRAtCTfB9lMKRRQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwdb-00000009c64-3B6A; Wed, 03 Jul 2024 09:50:55 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwdD-00000009bsC-1Pni; Wed, 03 Jul 2024 09:50:32 +0000 Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-58bac81f341so1721021a12.0; Wed, 03 Jul 2024 02:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720000229; x=1720605029; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=mYmIYCmqwVvji/gLlU74cbPYmKHONbdVpgfdzYyiV74=; b=XmB4e3rnsDWpqS4j4pkNgLs+C5aBREw1A+Dj1vRbrLrenOsoXguceKuMREbLQ6K/V0 NwwgQaq+GLW2KN/Dz4tBJ+DF18jfFqIu13F/yDgfjUKL2BnZ4xylw+QBt0Hj+5XUVn4n +bmq4sQ0W/V3R0FgFlC8rhVcU8EK108ga1S0VapCn0QsUA0GIDmxlhjUnL5hgN2CPteU NY8pRpkMc1KKDkSq7d3V6NH1CfEJ1ZLW0lPKqb0xh9u7W56uEubqdOjB/G2Q7wVPdg+H xsLH+UAuUfj9Czx7+O7OrffLSlkQ5kMBc/ICibkOlYk2xjCZ5FTs2g2cwM+9FPWKqHDF gYaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720000229; x=1720605029; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mYmIYCmqwVvji/gLlU74cbPYmKHONbdVpgfdzYyiV74=; b=u26B9zcklHyUvr8w7QJMYi4Mq4BhO6DHguTfBg+4+WKvoMTeMdGcoiQdsisbcT7Deb 4Zy9KogaWR/yj7yq4oexp6ffa5k+DxuRdvcbnM0Gqt/9BCvLgBgvbUEdGhJ2xgh1jGI0 5CHRTJQJKZHKfVaMvJjsuQxDni3RTTbeZTEmFR7nrNSKBf6Uh6bBxKnm2ExTtGcCCM3m wz4C0XN3GBinIgRFvvxoCl4pMpoYCz8i0mLb9si6zRiDzQt6Wh6Wys192jQ0AX5Nbzkg H0f9LvEpzReMq7o19zC3Y2Ade/f4gR6kUpijZ7b96nlBQ0v1FiEMSbH9BkVOOn9ON/hp jJBg== X-Forwarded-Encrypted: i=1; AJvYcCUhY4HM9gshYPhZ+Tk/e3iqft28ztQDFYQB9zzwAoC/VifcBF5Yb3UF5gMG+IpbODzCE9yFOFVuWJR2Rl1RbhnBl4QOpHEEKT/hoPJ9SJHeHrQGQlg= X-Gm-Message-State: AOJu0Yzr1OQc7YxqDGPFZmRh+BeRNfvFARCek8lSyvQuSCQ13Vfiaowm RhFSMIa5V+IDfaeBoV7PrquDNtMcms8z2CLGbCl1QnqeQEqdnfOY X-Google-Smtp-Source: AGHT+IEjqZP4O3mOUQ6GggXaD2dddoBtsXMh2gmEY3SRCb34lAPZsm7CE9jeeuYqrl4eCohJ0y9MQA== X-Received: by 2002:a05:6402:4304:b0:57c:d237:4fd with SMTP id 4fb4d7f45d1cf-5879f0c6ab5mr8167310a12.4.1720000229439; Wed, 03 Jul 2024 02:50:29 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58b4a97b1f3sm2082130a12.18.2024.07.03.02.50.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 02:50:28 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 11:50:15 +0200 Subject: [PATCH 02/10] clk: meson: a1: pll: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240703-clk-const-regmap-v1-2-7d15a0671d6f@gmail.com> References: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> In-Reply-To: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Martin Blumenstingl , Vladimir Zapolskiy , Bjorn Andersson , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michal Simek Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720000225; l=729; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=w1rOHhvKlNZR5V6gMM58fQeON2s1grhUcmwjN3eUzC4=; b=VJKr1FcizeZqWLivzNG3Thfjr+2RDK5PLLnFSUkzF90v7ziEIDUwgUNgPc80/Xsr3c6NTdsUv eaNxtmI5CINB3at14UF4KycZXJyoTf9I7pB/2nrA1YleMXLtogVfBdT X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240703_025031_413494_12A6ED68 X-CRM114-Status: GOOD ( 11.56 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org `a1_pll_regmap_cfg` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: Neil Armstrong Reviewed-by: Dmitry Rokosov --- drivers/clk/meson/a1-pll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/a1-pll.c b/drivers/clk/meson/a1-pll.c index a16e537d139a..4d0a6305b07f 100644 --- a/drivers/clk/meson/a1-pll.c +++ b/drivers/clk/meson/a1-pll.c @@ -295,7 +295,7 @@ static struct clk_regmap *const a1_pll_regmaps[] = { &hifi_pll, }; -static struct regmap_config a1_pll_regmap_cfg = { +static const struct regmap_config a1_pll_regmap_cfg = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4, From patchwork Wed Jul 3 09:50:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13721616 X-Patchwork-Delegate: neil.armstrong@linaro.org 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BB90DC2BD09 for ; Wed, 3 Jul 2024 09:51:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=z3OZa2SIeDzEhuKljvIKM9O4yYRZrkErvRm8vOKzo3k=; b=d5JxebV+kKSghE Dmpl1Hw7yF+MJs24jUtNrsNCEpuRAr17c0guZHZz9K3APJc/oDs0GRwwxKTh00R58OwQCZcn2Zh59 AHMNn94bKo2xnKcnrtq6row8Wb2rZPbhjLoIJc9/bom+G1nRFHRFJbTkFKRLfBV57OfGrK7g+x+Gg 1iY9uS1O+DxPbrVuuVLepZRqcM4m5Nwu1BVKsHfeMhggWTnJtt+DAnMiwbK4paosctxp3PWxaYbRk ygCwvC8Qh9VbG5FZ6/7ajBC3e2JyyJAQZOLThSlJ9TCABbB17NjQV/KFxz8bnnLl8XT0i5g1U8Oqe sXAQ5E3IzljJVsN4s55A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwdm-00000009cCw-2Ej2; Wed, 03 Jul 2024 09:51:06 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwdE-00000009bsh-3OJD; Wed, 03 Jul 2024 09:50:34 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-57ccd1111aeso3563547a12.0; Wed, 03 Jul 2024 02:50:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720000231; x=1720605031; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=nvMEinijEwgsKZDsBmGm/iKxTFLThMpGobnSIWlzUFc=; b=A/b1zclDDfk3hRQRUKayOPbevb82NYdMRdZttKs9r37Xyh2ZwyLxagUA72+dWQKeWL 1TKJTcP3xxKPPSt9Ed+kwXwvPx/0uFvCGumRqyn5mzuvvO8Ae02S84EItKybzYwLFyMX o2CDjI3AjDGzyXrqXCrbstjd36YrK1Kvxjeu/Z+Jhfy/fTUvCpb6aEqOHkTB+clW3deA xu28oKDKDRQFZOHIl/5Wc14RbmAWArz8Fc7vxCZK2GJ+bXG4LOIUshIIDY2sancgYSrL dkBKGb6k6NwfLq0niuaB85cdWCS0zakYnLIDD1i0ig7r1c/7CYV7DlNxnvmlJ0d/NrhN AR2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720000231; x=1720605031; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nvMEinijEwgsKZDsBmGm/iKxTFLThMpGobnSIWlzUFc=; b=UfEf+bkw6YQKpii+bToLG+jTvZfnB1nCFckdh5po2nEIveKn4DOciylHof/Ek4N4XV q115d9oE9eDTUKFko0OVtFyNcFkcy3CSxF9qDqrhs1XsM3mVQ7PqgzCONReYGtujcUH9 AR65vrc7EiWhWGq7QIe2RKwvifhY3GiE58AP8TuU/UaEOCAoB1JP7VJeXe9p2L8BxoBT RiJp6h72Yt7Y9zK8fEDfZ79P/406XCUHwz67ohDLPx53eUtKY3VoZ8ZQYVLbDB+FcGPM BFhN1kz7BaV5g1P5CeYjLxbWLb7EJo7MdjuFdWIFSh8c9HaGQlCkFDSHIPFnCPUhr0t+ a4Bw== X-Forwarded-Encrypted: i=1; AJvYcCVBUY3dQ/zsZX5JMHfvBpqES6FN4M2W8MHGjpJPPxr8Xg/bCnMrnTpCnlt+7M7AfK6/27fhTtjWfzvdNzO5QS5Rdr7FQt54Q+Pb+1H18h5SG8E3jII= X-Gm-Message-State: AOJu0YxznLjxkSKlTbIfkAaqNicP4dzb0kUbPYa2Mo/vPw6hViZVLuMo QhjzppOVC6baaCBMJGgpVnnsNJyfx5m8YlVl7zopgM8MiOU1X//1 X-Google-Smtp-Source: AGHT+IHqO0NeW0hYgOS++CrB+maws1bAp/Jb+zrdkccIaJUBHpnIHgiVuw0F79kfyt8XXwzzdBrjHg== X-Received: by 2002:a05:6402:90e:b0:57c:abf9:e6ab with SMTP id 4fb4d7f45d1cf-587a0bfc706mr8446988a12.31.1720000231004; Wed, 03 Jul 2024 02:50:31 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58b4a97b1f3sm2082130a12.18.2024.07.03.02.50.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 02:50:30 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 11:50:16 +0200 Subject: [PATCH 03/10] clk: meson: c3: peripherals: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240703-clk-const-regmap-v1-3-7d15a0671d6f@gmail.com> References: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> In-Reply-To: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Martin Blumenstingl , Vladimir Zapolskiy , Bjorn Andersson , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michal Simek Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720000225; l=790; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=TxADEvEEBX/TothZVxPgAJ7RkXfQpn93WbFswKz2wf8=; b=ZRDeYsd4qQkFOSJF/zfGi7N72RpeUf69oTYxSsNrKIIUNBXaLyo9mTarnDmlHNHfjp8M5XoMO P5IZN9S7rqXB/deiDxd3FbCvxgerParLlTFa3YYJek2EV5ur4YeuUNQ X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240703_025033_043089_05907965 X-CRM114-Status: GOOD ( 11.74 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org `clkc_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: Neil Armstrong --- drivers/clk/meson/c3-peripherals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/c3-peripherals.c b/drivers/clk/meson/c3-peripherals.c index 56b33d23c317..cfa573262bf1 100644 --- a/drivers/clk/meson/c3-peripherals.c +++ b/drivers/clk/meson/c3-peripherals.c @@ -2296,7 +2296,7 @@ static struct clk_regmap *const c3_periphs_clk_regmaps[] = { &vapb, }; -static struct regmap_config clkc_regmap_config = { +static const struct regmap_config clkc_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4, From patchwork Wed Jul 3 09:50:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13721617 X-Patchwork-Delegate: neil.armstrong@linaro.org 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EE0ADC30653 for ; Wed, 3 Jul 2024 09:51:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=e/jm6riFCD/8jzt7cqy87ZqS0yq77/ceEXzYBNMpYD4=; b=gR9nNjraabwK3h GGf3nTVTfB8AYpNNGeegChrctpWoj9YgsAFC4sOTEAVSJyMpJTEnOHMTVs41zVLrmC8MYh34lE8RV 3C7bxboGTPtruOVhDMqWQHt8Gtgk3o5zNIJIUwliL60BtFr+wCVRg+Ber5/76UrGCgzJ2KvhlWAMy Q1w/Gbb4eT7cizP5xqyZv5E5vkEE+lE4fYfeNu2ZHYNm4e6nN87LLH8CF712ggzqMxnqqYF84Dbq7 SExz1/Xz0/gkWHqMqM+H3XHMPgiZ2vEYusm2vScHUhHP422rqZO2YONhfFacdOrqW5pIBt46Oy2VQ n5od/oLRmMOnsJofN9Vg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwdx-00000009cIb-1u4f; Wed, 03 Jul 2024 09:51:17 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwdG-00000009btw-1SjK; Wed, 03 Jul 2024 09:50:35 +0000 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-57cc30eaf0aso1639852a12.2; Wed, 03 Jul 2024 02:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720000232; x=1720605032; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Kd/sgJHBXOe9fs3qrhdvMpUQXrTXNMFaR6+MycDuFVo=; b=Zit7Ftu2++79NmHaL/Gj7IaYbixhDs8Qk6HXstAf2vgeA9YRxxKNKS81atu79h7kuT eXO3sK7ZKLE7xTO8GAO4b7PEVLrg/enlTNUVoFqed2excftdSgvN+mHWB/47gHKtjipu YLj8i1sHY83yOdgZWzMFu0S1om9suMc72gxdeTLPpwEW7e94SDVFkl4fv//k1wJLpWYW a8UhTkUY5bDzk6FYQ/prx84knF4R3inIZxXpzXFndY6ZEmT3oXaDxFOOSExoZdMmNtSj gH0SBpwjVhL984uAAC1lRRlHL/lCHLWSwnwPQXbUwF4pxSe3je6DmbyFC2YUtvJSOd3U kawA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720000232; x=1720605032; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Kd/sgJHBXOe9fs3qrhdvMpUQXrTXNMFaR6+MycDuFVo=; b=BGRptz4d74h7mTR52ULvv/mHdSd0SCoKv7TLHGT48wg6uBdHUHF1CGU2KaIXq5iZrb 2yxLocQ9yNW0oWnVmJTQ/g/FbNbAmNo3aEn0gOtjFkQ3nf0pzRgqyYbLrkRsSuFmK80p LjP/WJJ1dAP8E0DpWVJgKvnt9DRadK64iL9eAmxvrFu6PN0WiM6LwrIr6LmBRk+MTTrZ U0rqRl7lyfKI979MG2U2quVdbA0HCcTQ+S9GCSltfQYKGZ2bxlt2EzAK18jWqxd3RAi4 M1RIzndU0tlZbkB1h6rst/EI/reZQ++/D9YEtjXvqqM2YVtaH59nmv55gbQd5BmG8wa/ jaIg== X-Forwarded-Encrypted: i=1; AJvYcCWiF2vEqtY6jYtE+IMCP9uyXM/oZ2DnUC9HslRB1INxGs/ah+/SOMZv2yrdFxKPAin0FfjHlGmXNwL15Jmg5eP4dIw6EGLj0jLdAAuzxZU7iNxuiio= X-Gm-Message-State: AOJu0YxVBdVptOSc8XxwbB8uQ3TiEG6RnhsMuvGW2eJG5qqTWn2McIFw UxTGfi20BGlxNelGqWq4FUPuFSzz7pQrPJA2/vJpvh7duVciMtVLzN6ncNEs X-Google-Smtp-Source: AGHT+IGs/WDtbZIXTR4T3vygKaznx3++FpGKeIUBPGN/fnT9vd+Uc+Jd45wPLlvNWdhc0V3hB+BFGQ== X-Received: by 2002:a05:6402:1cc1:b0:57c:7c44:74df with SMTP id 4fb4d7f45d1cf-587a0822c1dmr7791768a12.29.1720000232375; Wed, 03 Jul 2024 02:50:32 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58b4a97b1f3sm2082130a12.18.2024.07.03.02.50.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 02:50:31 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 11:50:17 +0200 Subject: [PATCH 04/10] clk: meson: c3: pll: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240703-clk-const-regmap-v1-4-7d15a0671d6f@gmail.com> References: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> In-Reply-To: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Martin Blumenstingl , Vladimir Zapolskiy , Bjorn Andersson , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michal Simek Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720000225; l=745; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=87EEyGDhqMM4XSc2dnrLtfdRuLpnYLj4dPXzZjLB2bE=; b=RRDOpnPm8XSIvDMG7UScdHDXqikzkMcrNLmY1ueozOmyEoM6oRCDBKdS0sxGWYXstfh9vXJrP yRZGKhFD/fLAt32CCD3d5+xukZJvqb/EN1KQc39Rdh40+W9lXA4SAtY X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240703_025034_431763_238FE107 X-CRM114-Status: GOOD ( 11.74 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org `clkc_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: Neil Armstrong --- drivers/clk/meson/c3-pll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/c3-pll.c b/drivers/clk/meson/c3-pll.c index 6d5271c61d14..f09f4f7b46fe 100644 --- a/drivers/clk/meson/c3-pll.c +++ b/drivers/clk/meson/c3-pll.c @@ -678,7 +678,7 @@ static struct clk_regmap *const c3_pll_clk_regmaps[] = { &mclk1, }; -static struct regmap_config clkc_regmap_config = { +static const struct regmap_config clkc_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4, From patchwork Wed Jul 3 09:50:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13721618 X-Patchwork-Delegate: neil.armstrong@linaro.org 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 68E4EC2BD09 for ; Wed, 3 Jul 2024 09:51:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CJS5MMANkQqy9s7/lCIqpn6nvQqPgWJB3JxW2vle74s=; b=hkqgsczIT2xQHa +y9YRtnqR71dv5sUB3Ko948EGW6ZYUdhhkErizDRyM+k9tk6mDCtZ8Fr2aBXzFL5M8p5VP9SYfMD4 rT7E/44lMcVqAjAy2327O++ChMeU+2DewmwFcV17rdYPS2gTMiqldRwasShZ/WKqynXDn23S61pZ2 xdbwieuIyQ8Ntk8yM/5ExMZLqF0FNA7SAgOiDU9PXmpJrIW1CMCb9tu4+q4B61UhsT3iNdzdLsdQH 4lOzhu24NMpOOp9VAIlV20NPTCdHnhSMkZmZU2PZeWqIwvw1PmY1ivme8RdhKIfdSyoCxjW7B6oQy ou+znSob0ocF7AWAHAqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwe7-00000009cP0-37PQ; Wed, 03 Jul 2024 09:51:27 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwdH-00000009buW-1m3Z; Wed, 03 Jul 2024 09:50:36 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-57d044aa5beso3258189a12.2; Wed, 03 Jul 2024 02:50:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720000234; x=1720605034; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=VakF1oeyZohqJOzCR2EB+e9QseEPpQNRdPS7foA4iOs=; b=DRqZvEr8+MSQ3UAKLUGuM2Dlszvj0QbkCjl7FNJoTxrtjrDnom1r9hDUzunn/DLXDh its7UvFSZt2ySaER7o0uwvtWpw23x2AEWYLC1Yq/dq6b9tkeJzS0CxfxMMwaOAxGkSBN ye/eWP1X+xi48Y+D9IuzhfNd7FC9d+LJhSHlupM4G9B87wpxvHyf84YoGd2+rzQtv9Ux P345lctLTk2FrFs1I1+HLYnAP9Cmf+qsDy29lKVpls1wX8/AwXiFiPPQMX6S+qf2XGnr +fx5Jjyc5bShhs27qnRGzHq0nlZEdF/LxY/854E1VeyUbv7vODWRsFnBEz0Dlwg/KLBs iHnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720000234; x=1720605034; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VakF1oeyZohqJOzCR2EB+e9QseEPpQNRdPS7foA4iOs=; b=ijc/U5qzgXbVs2AmjhbXrkpbt44IaIaZNM9cOzMrcJHW6RW2aw8HyBTel1mZCZvJ0E t2lkbAjRzrO2NAW9ZVBT2OEkOPEa4jXsXHVnO2P8BFLhUYUDN/mIMLGyzv2E1k+IrSwa 9fYOKo7s6arP6D3I0IW6rfdYECaFQ4gxO3SOvTja9DPnAPR/hVMW7HZPrOTnIo8o7Atn 1kvoyDFDKzzEUzp1gkYiovr9a/fzeDu3uuGbjiZGHtFwAE6Y1LGz0bLrEIfbPQdCh8er r6sJhEdAwc2VwP/ZkmHnwZFx7guhyGBpRZhOthMpKDbmWXmtrFNuoknjxXNQRrKNKxYh rcJg== X-Forwarded-Encrypted: i=1; AJvYcCVtmI+PK5gHVnN11NjwbSd86IFnd2UYfS3ylFdtm7zHPiugG74f52yJsk6Pw6c+3rFZp67AmsIbK4jcNIpEY8F0rvEX6KTk3XZZX2uudJHO1eKfXIA= X-Gm-Message-State: AOJu0YyH66MQwrYPDXwoZBU4OZou86W312cUIGoWD1qsoeOwa4BvZLdc kMLJ3TimLA4X2B1TDn3NnvAT0DJ7hr9Lcq0yrBLEMPS6U2TcMSUL X-Google-Smtp-Source: AGHT+IEGIMF6jrdxS/In8NlkeaCvlqbPYXuxDzo7b2vkqDV6QtioedyCtz1EmFD+tAGLOVsHKUj0Ng== X-Received: by 2002:a05:6402:1e94:b0:586:e6e3:ea18 with SMTP id 4fb4d7f45d1cf-5879f5a1b6bmr7392371a12.23.1720000233803; Wed, 03 Jul 2024 02:50:33 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58b4a97b1f3sm2082130a12.18.2024.07.03.02.50.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 02:50:33 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 11:50:18 +0200 Subject: [PATCH 05/10] clk: meson: s4: peripherals: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240703-clk-const-regmap-v1-5-7d15a0671d6f@gmail.com> References: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> In-Reply-To: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Martin Blumenstingl , Vladimir Zapolskiy , Bjorn Andersson , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michal Simek Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720000225; l=807; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=N0gJOHgxfgNpyO7ny+dBVGTv1J0OImnbpHVOZH5V8Z8=; b=brXdgrZt/FFF/7aOoRwCjMcSneXj5ric9H9NFCiK+WzN1kYqNVkq0K4Ee43Qa1H6bBN27toOv 2nHJ1WXyPk1DAD3OnpS5N4nhsoLAwIQpSJeEY+xoiRb9y0EMDFuiH3s X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240703_025035_505956_BE01AC88 X-CRM114-Status: GOOD ( 11.56 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org `clkc_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: Neil Armstrong --- drivers/clk/meson/s4-peripherals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/s4-peripherals.c b/drivers/clk/meson/s4-peripherals.c index 130c50554290..ba1d531fce4f 100644 --- a/drivers/clk/meson/s4-peripherals.c +++ b/drivers/clk/meson/s4-peripherals.c @@ -3747,7 +3747,7 @@ static struct clk_regmap *const s4_periphs_clk_regmaps[] = { &s4_adc_extclk_in_gate, }; -static struct regmap_config clkc_regmap_config = { +static const struct regmap_config clkc_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4, From patchwork Wed Jul 3 09:50:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13721619 X-Patchwork-Delegate: neil.armstrong@linaro.org 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7B141C2BD09 for ; Wed, 3 Jul 2024 09:51:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6E3gKJdXEhxQbwhsnlGxLvEGVuqE0CyB8I/2KBe8fj8=; b=EfGF3pb92gCiGn KA4sxxOceV0LGAhrOAtMzwjoIdutR7WoAU2wYAiZZb527S35P8jw9uOa4LbquxXntQH/NEwoanpLT Cv63kiLiyaYfmTGfTql/Z76wQEWkYm2CLWQqixkOgHGHqRUhd3j7rbuKMvpHZUCP0pd5LQS/N7Rn3 uuelgFT7YeYAzFp1zO8HsHfSLcT+LIBXEAjPyPmTJ4q/eIOX2zWvFHv4tkTFhA1+kHbasKCesdTim 0IaAvJHhpyetSX0r/SRbytOEmkS/2kiTR4tIcSiaEQb6qSb4g0bSWdJ2sjpyEUOqXerRE/HAZOjlM kfvtSTMEiNRmcoz5FUCg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOweK-00000009cWm-2AdK; Wed, 03 Jul 2024 09:51:40 +0000 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwdJ-00000009bvp-18Rh; Wed, 03 Jul 2024 09:50:38 +0000 Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-58bac81f341so1721114a12.0; Wed, 03 Jul 2024 02:50:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720000235; x=1720605035; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=q5sGY1MHMh4vP9RTlfTXcp30OvUGJ6Up0VGY07imbb4=; b=VKG4P0+E4x5O//EI2iYJVFnjjnMq4zoFOEyEs9PYOJHiYHBru4Tpc7s9lbFICvq5pt x0i9Ws3G6YiZ7P+fe2QK94SHtvIZd54PKrUEsamSflgCcR7uhbhCtkC75GnBxuiKoMoV G/WUUdyB7ellSfHOHpgmcD348FSfQFNMgv18Ug2X2FfRn9jN28U9Rba1KkEaGWJR4DFp EKJe6Su/w88h4PUz/FcKgpoeUa2DDBNA+Fouw/Zo2QgxY/LoSIfdj40Gmg8qvXuL/VqY lczLlII3xxPMi9NqPqFQxOxGptSSD/WIiOxs8oc2d8iE8rLlLC28HVgWj2OIbycHyXoQ cc/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720000235; x=1720605035; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=q5sGY1MHMh4vP9RTlfTXcp30OvUGJ6Up0VGY07imbb4=; b=Pf8Tt5DYBBH3riFrXVMYPCtNiOlJoe5XyLJ2bUxmFVdU+1k2kjsHZu87VUYBe4aX67 pPagBFPLPvDCfBf7BpftSJw3WbhYBoR5BtkJg0J1gPGkGFmYZ3Ta9P3sTIhXAJDiknsh WLJGRh9U5WRbaeWW334/eOG3ope+SSdX0yRdx3rZR2RUMJ8QMLyKRpBBcjjnRLqB6Ldh SLRUOKgDTYY4c1fSc5QuNcEyhElXskBaYZBusbDlnSfjE0pQQlD9R36el+Dc8h2xfT0c jCWovB2bufdOm4OQO9Hhrwh4+YOi6r1UaydhKUKodhZ6fGbE9lbhfSUQa1WSbiZAfovy NdPQ== X-Forwarded-Encrypted: i=1; AJvYcCUACPG2GcgNndcxKTwdB+pWvKUb8BSOZKuwsALoztz6tcg09vsoheiwZPfJq6Jmfu7k5MqKN+gqunQMpcANB1cu8Q5wJLWOrt6DCNBfqG+h+2B+R1s= X-Gm-Message-State: AOJu0Yx35ffRNvAw01FKKmCvn0DLCH2DVBFtF7jI30hRgkSFvMHWaqiZ CCyWgcRJW1M065FbAijVhV6DaFSqkhpQp8phpiB2b1EIU+kA81NJ X-Google-Smtp-Source: AGHT+IHJvWuVEjeg7jS3YGWzwBblEC1aBEjiRtx7Wx+1gkXGABMGiz68aiczGU0eMJw/KYhEPM88eA== X-Received: by 2002:a05:6402:34c5:b0:57d:4cbc:cb59 with SMTP id 4fb4d7f45d1cf-5879f984a22mr7916813a12.25.1720000235436; Wed, 03 Jul 2024 02:50:35 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58b4a97b1f3sm2082130a12.18.2024.07.03.02.50.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 02:50:34 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 11:50:19 +0200 Subject: [PATCH 06/10] clk: meson: s4: pll: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240703-clk-const-regmap-v1-6-7d15a0671d6f@gmail.com> References: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> In-Reply-To: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Martin Blumenstingl , Vladimir Zapolskiy , Bjorn Andersson , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michal Simek Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720000225; l=782; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=QjI2XZ6DpFgtcs0s52itimxDAtU+za0z6ETKz2I5xKg=; b=shXXui07Vv0SxzDWgmKblWiiO/F6QjUD3Gg2XbBPFxNeKr/3DO+TzrHVENvorbTe6ULfqDHDp pgzaktXTA0kAf2uTyPcMVNSPw+MBMfrFC59IJ9aaKMY+q4QO4+9Fx/x X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240703_025037_346475_3720962C X-CRM114-Status: GOOD ( 11.50 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org `clkc_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: Neil Armstrong --- drivers/clk/meson/s4-pll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/s4-pll.c b/drivers/clk/meson/s4-pll.c index c2afade24f9f..27c10fc499be 100644 --- a/drivers/clk/meson/s4-pll.c +++ b/drivers/clk/meson/s4-pll.c @@ -799,7 +799,7 @@ static const struct reg_sequence s4_init_regs[] = { { .reg = ANACTRL_MPLL_CTRL0, .def = 0x00000543 }, }; -static struct regmap_config clkc_regmap_config = { +static const struct regmap_config clkc_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4, From patchwork Wed Jul 3 09:50:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13721620 X-Patchwork-Delegate: neil.armstrong@linaro.org 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A3F73C30653 for ; Wed, 3 Jul 2024 09:51:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iNEZxL6kr/r9aA2rSTRZ3yLGv90kl4hbZjCg4HNDMaA=; b=OUFpN/M+UczA1q gMq5TyULut64wQqepbj+orKErROv4Mb4B42z6fYC0/pzhFp4vbB5dFvS7AEwe033arK5P6a9HPlSr gRf0ROFyERWJ99BU20whK7phAO44niMxMfdHasYegiUE7Kma0CW3uIcL02tTQUqKUFrEYmUaK5dQE dyU57Rl8jcisyh5knlw6rDXslX6hvePd9ZyuY7rRm+JUA4JUrBAXpHBOXgsXe14aJMkT8mW9tijs1 XOrHJr/b2XUwed5XQoE/EJfJn2EhBIHTd+q3LvwVuleOAlEVxeDGXlchQUQMeK93Ye6GoniCyJe5O jHzXbZrGJZYFzgbCwACw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOweW-00000009ce9-0I8U; Wed, 03 Jul 2024 09:51:52 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwdK-00000009bwL-3W5X; Wed, 03 Jul 2024 09:50:40 +0000 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-58b447c519eso2548666a12.3; Wed, 03 Jul 2024 02:50:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720000237; x=1720605037; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=k/v+B5h2PH1m+q96jJ+7IvzomlXuROk3OZZLA8dWAec=; b=cJjbjQwh7GwVETxz9Bn24sajoXyKxWt/4pqD8ydQm3qXVCWYQRqE2Nwrl0odXpajSr RuRPdCa4Q1tsBxdnlChRj79XpdjmkgjUqQoOKi73GknkZ9ALQW8/FYSNluxMiq/FnDzC G9GvnOyxn/jxErH0y9jrcetp76koBM45vpNgz9paLyq1k/7470LzhdwiT8UVjslMES5v z8vFBDtq+aqQcheW0AXfWfpTaN/Wzzt7a0E8hF7TwApMQEWGj6drPmj9DjHTa0FqxSf/ 1AAIcwayPMCBAfaBxG7xNdhrtR1wBBCmE1CunhIlkspaevlwKbcSJ2m36FItmGyw9TN2 n8+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720000237; x=1720605037; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=k/v+B5h2PH1m+q96jJ+7IvzomlXuROk3OZZLA8dWAec=; b=t6awz0z6oFR7eCto1n7uJZXemv/A1aMw/iIjjpgcv98rr/dqvr6uRuG+11bl6KUuHR 1Xb/YQNR1dEd4aybDW1HwYS5UVLnXERbiUXqmNr54ZNXnQghA7NagnK/ir0iA3tBxYqb 2uEhM6ywONp3tLlqEQmSjneEHpVpzitlg/u+2mRUrNynjQTAV9cZ995bqUzY1fRir9i2 tRKzVK/M+HpqGDl1YMBNFbPXKQU05ZIEWYq1ABI+ibyDocYzLWA/nHQT70snschaCOJy AL9+m6BG2UUsv4JZMRnoVOOY6Iihh8F27aLVmoiJ5ZbU4mSGFRtqH8s+W5QCllmx5v+l M1Iw== X-Forwarded-Encrypted: i=1; AJvYcCX1XNW9a7rpqgfx76w/QTUb7MtAH7/JHtXRgu9CMCxdt+7ZkdzgyRFe4Zpeii/9ft5Cy3R8gRgT7Cd4vLLdw+E0QENCpAnGOGQH0Z/rKEzxdMJTE/Q= X-Gm-Message-State: AOJu0Yx2jFJbyHtFK3EpXb0flkM4RSSEvrKSaBL/kp9v91pfAk8TaSBz mIC/u8giVgDW4kqHZaXwp850viz3ihFpKfL6d2+8nBWSHgS6WXPM X-Google-Smtp-Source: AGHT+IEIY4dIoxPJludnffZYVCFFdIx0eviJTJj2qywdu4egDu5miCN1B1+FWYpxH8LMM6MLKJZmaQ== X-Received: by 2002:a05:6402:35c3:b0:58a:e810:227d with SMTP id 4fb4d7f45d1cf-58ae81f67dfmr3569556a12.21.1720000236940; Wed, 03 Jul 2024 02:50:36 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58b4a97b1f3sm2082130a12.18.2024.07.03.02.50.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 02:50:36 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 11:50:20 +0200 Subject: [PATCH 07/10] clk: lpc32xx: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240703-clk-const-regmap-v1-7-7d15a0671d6f@gmail.com> References: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> In-Reply-To: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Martin Blumenstingl , Vladimir Zapolskiy , Bjorn Andersson , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michal Simek Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720000225; l=760; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=y/2i9xAdynMCIKKj977aVCl8uDEeFBvS+ERij24gH3E=; b=Mp1Bzj4pQqStVgM8m4kQKFq4aJg6t4Fn7Xr88JURvNcy0mwlGzsq289eVMQClPqQGE4zzTNJQ l76GeFFivBFAiHCY1+doTXdXhw5oYcuQ9gGfIgcLZeBm7FzaG8Rz0MV X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240703_025039_003846_71112BB1 X-CRM114-Status: GOOD ( 11.66 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org `lpc32xx_scb_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/clk/nxp/clk-lpc32xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/nxp/clk-lpc32xx.c b/drivers/clk/nxp/clk-lpc32xx.c index d0f870eff0d6..e00f270bc6aa 100644 --- a/drivers/clk/nxp/clk-lpc32xx.c +++ b/drivers/clk/nxp/clk-lpc32xx.c @@ -61,7 +61,7 @@ #define LPC32XX_USB_CLK_CTRL 0xF4 #define LPC32XX_USB_CLK_STS 0xF8 -static struct regmap_config lpc32xx_scb_regmap_config = { +static const struct regmap_config lpc32xx_scb_regmap_config = { .name = "scb", .reg_bits = 32, .val_bits = 32, From patchwork Wed Jul 3 09:50:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13721621 X-Patchwork-Delegate: neil.armstrong@linaro.org 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 63407C30653 for ; Wed, 3 Jul 2024 09:52:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=J38Ip9h/d9vS5OhtXAINvJRZP43Vk2d2TiS/yjiJ6+g=; b=GOaQbXTJBFqA2M 4ii+ZRGPF66LDDITYbVh/ZifjtCCTGODOchAAxJTD7WDQPqOJyYMLJuiNKgMkESGjOfkmjAaxliDV 8kNYHJ3PbChOH2/tscWv3HhFGxGt7/2nPmA3YbubsfaQy4E0N1GKGgS7mSY3jxPmm/5jfqjZHtPTH gzyrlGKOZT2U8vVHK1DIbarAS3s5EA1nwUcapM3kYYUgMG7l+glpI46PI4i4wMkJdJyTWll/30ujZ /TNg2n34EHvCF2O8v7WDpy2lcTvgDPITvDW/lEx5J+/p0Itu9tVH6gJguW5IZNFucRR7bkfc5iyjf inWcAP8aeYmFkiDXW8Lw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOweg-00000009ckd-40R1; Wed, 03 Jul 2024 09:52:02 +0000 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwdL-00000009bxW-44qp; Wed, 03 Jul 2024 09:50:41 +0000 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-5854ac817afso3158203a12.2; Wed, 03 Jul 2024 02:50:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720000238; x=1720605038; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=wLgsGqmc7BPqHMYWncG3lDrLlsc7ZfRJcAq4ykKg8iQ=; b=Ui7k/LtoK+52wYmXJt7E4BRXj97gJ97pFAUy4BzNQXXd8Pj9czp21T+yaVOttnJVME TLYVGIGnFgChSJvifX045IaNGIIX+34+gcrMuu2a2fI9esAl1MnyAEFbxUsQa/0Icy8I rNAqG7kzZjsWdUvJWcTnuXZzzOGIr2Ktc8lypny/Aq/aFV1FZkkcW8+Q0EfhhW5oOwFL /n3bFPGAtEhL7q4pqRtQduxZiDv+xIXJurZ6b+PoqE4XFFekf/E3ZcNbm4XV+6sASaK8 YXD+DGfZrwDKUMMphM6evqfMg99dVu2NxIdY8Dc3ZrdGoWC3/CEdQgtPbtr78Bzm5//2 rAEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720000238; x=1720605038; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wLgsGqmc7BPqHMYWncG3lDrLlsc7ZfRJcAq4ykKg8iQ=; b=gv06PhB3ijFlzgSsZy5QUX4EDgLNhZOjn8uWFn7baR+Txfwn1CbWM/4zjl8Ow0qATc 5ohxY8xh680qbFLgDIgfnXadtec8ltxoF0o6wesqPofIBdpWZbDifmvOYrcYcPnP43FQ 5PQ3XLKQwjyHWxcphJ4TUVgVAOrk+RS3r+cacsgm9xZ5P37AadcQkcXsgXcECb8z5Dcf e3H8GexOVzGuZDxCUETK+vva/eHEQ5TsUmau156bQPWIKBggOwY4WNRMy2Z4SAkxm87l aHUmAtxaqsODNbVXyTejOZ02fmiJkmDvNqEpvdPYi0uQBpznYDx/4nuvsPgAKlWHcl5M R7zw== X-Forwarded-Encrypted: i=1; AJvYcCUXGLKANVtJ/SpN59RWbu/sH3cdJcP3VWPDTsUI2lwNk5mdwMX7RjOD7m5JIsbzegUxVDJVFphLUuJe9WxPBL7ei0NQP4xUnbko2qVsc6XSzObVN+8= X-Gm-Message-State: AOJu0YwBMOjOmbgRsnv+k2TwafW2rt4VjipcbUMxaxhQnOChaLjSSd9Y 4zfoSonCnTX65CXOBoG5meMRPPfYY+Ay/OZxvRu5+lDI4pH70Hto X-Google-Smtp-Source: AGHT+IHDBJT3Q4Laj/q87YJoetkDqI5ofUOXbXiuW/rDGosGYXbLBVOAupqJHnTVnz6rBOrgARQkAQ== X-Received: by 2002:a05:6402:27ce:b0:572:4fc3:3a28 with SMTP id 4fb4d7f45d1cf-5879f982ffamr8309648a12.23.1720000238458; Wed, 03 Jul 2024 02:50:38 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58b4a97b1f3sm2082130a12.18.2024.07.03.02.50.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 02:50:37 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 11:50:21 +0200 Subject: [PATCH 08/10] clk: qcom: lpasscc-sc8280xp: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240703-clk-const-regmap-v1-8-7d15a0671d6f@gmail.com> References: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> In-Reply-To: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Martin Blumenstingl , Vladimir Zapolskiy , Bjorn Andersson , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michal Simek Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720000225; l=1251; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=r9UG0iaRfl1edz0iDrKl1TCA7udEuIQIOzcFOl/X/K4=; b=B7jdNvHm/5Mt3ktcfDeM9c8KninOBlgFk8K0PVOq+LB2WsKsc0vbO7U/7APUKe4yiJSNoyh1i HlwYoMOYWxNBOUay+b6kvtC6NNAQ4xpzKMHyksGClZZg3Nd+T/kDVWb X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240703_025040_188973_42529644 X-CRM114-Status: GOOD ( 11.27 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org `lpass_audiocc_sc8280xp_regmap_config` and `lpasscc_sc8280x_regmap_config` are not modified and can be declared as const to move their data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: Dmitry Baryshkov --- drivers/clk/qcom/lpasscc-sc8280xp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/lpasscc-sc8280xp.c b/drivers/clk/qcom/lpasscc-sc8280xp.c index 3693e47d548e..9fd9498d7dc8 100644 --- a/drivers/clk/qcom/lpasscc-sc8280xp.c +++ b/drivers/clk/qcom/lpasscc-sc8280xp.c @@ -23,7 +23,7 @@ static const struct qcom_reset_map lpass_audiocc_sc8280xp_resets[] = { [LPASS_AUDIO_SWR_WSA2_CGCR] = { 0xd8, 1 }, }; -static struct regmap_config lpass_audiocc_sc8280xp_regmap_config = { +static const struct regmap_config lpass_audiocc_sc8280xp_regmap_config = { .reg_bits = 32, .reg_stride = 4, .val_bits = 32, @@ -41,7 +41,7 @@ static const struct qcom_reset_map lpasscc_sc8280xp_resets[] = { [LPASS_AUDIO_SWR_TX_CGCR] = { 0xc010, 1 }, }; -static struct regmap_config lpasscc_sc8280xp_regmap_config = { +static const struct regmap_config lpasscc_sc8280xp_regmap_config = { .reg_bits = 32, .reg_stride = 4, .val_bits = 32, From patchwork Wed Jul 3 09:50:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13721645 X-Patchwork-Delegate: neil.armstrong@linaro.org 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 219E7C31D97 for ; Wed, 3 Jul 2024 09:52:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9GCTAUfGku9EZ19vLcIB7auoJ3eYOouvPq0fbnyo3DY=; b=2oJvZ0VeFjAATU cKyAP0Co/1ZCru2iMLjRmPSr41tXKdG7k9q1UAPOF/6O3RpMMAOjCbUTg4eJ9dPCOQS9LhE1NNls7 rQUWOB/wKAmc+CXuxUxjvwu3gPFsgu0pOYHUPC3U1Y5rhxIgWdwpu7SatlPGRXllqSTgu3eapqqLJ ParLXRMYmqDJr29Pp3Kt9At3Yvvg5t7VDDeHKFZyDRW/tA63KYBBhJvxPpM+W3Ozrxha69Wl1Ka96 wFq893aP5XVSoveeNMaybY3ucLFUUtDhji2ftDTZODAEIRO5fqatxY41EIRP3ZmE2yEKufkvpTqa0 m+BrfKcSt48/6x8JJPdQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwfD-00000009d0t-1AyD; Wed, 03 Jul 2024 09:52:35 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwdN-00000009byZ-2UR5; Wed, 03 Jul 2024 09:50:43 +0000 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-57d046f4afdso1495305a12.1; Wed, 03 Jul 2024 02:50:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720000240; x=1720605040; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=iiCqBhqUCgc2qlo69kMyfb9Kw0XmXS+HbWPYR88AKtM=; b=FtKbVA/oQP5JunJQFzqusaPOKwO5CHJe2fSCS90WUZE2XyAhVTexE/Sm1Oc7fxemH/ 8dc+XsMol3akb2v3DDr2s+62AUJMrdyfcGCUfXpiQY0FRazMGLX4C0a3nnlnwcHNzqcI Ywhe3CCbhpKodx5ibhKUNyTbUkTCS8fI1sMweaI6lOpMsgmGKcaovTEOsGninfZQEtFJ sCjsfRdmsC5lB2Y4SIgboQC1Nc9HNuoex8SoAo45J3VMdc8/fF2QPbZxaxYto7zyxpO7 YydjpmP4cJKYY3Zci2TxKkwjPBCHuxIzjp4xx1IIXUjBM4zWhWHZm2cdlv+tRSo9GP8i kkpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720000240; x=1720605040; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iiCqBhqUCgc2qlo69kMyfb9Kw0XmXS+HbWPYR88AKtM=; b=Qkm16UF2ZnLmpnjnF63x3vFb8BrtG0LhhrwDV9Y0q6zIwxmX3zPZ3IDMKbWq++D61g FeiT3WnkJdcKsfU/bwahy0XFyKOCRfPYQhtbcAUqEtOwdGvT/rqYYg+WPbZTecN6hBg4 f/b0Y7mfGvDRnT6fjjhxt2D99+yzEnSb5eEhkkX+TsgAm5mOFdOz04RBs9koSWvcEuU8 YAwg+yfC3/3PeS1D17sQ5JXev/VRMiWpJo1vUDH89fI66Xfu5gq9bl6bk87/9n8JfmqZ a3SMlwXWI9iyNYNy7wZpGkQDVqgh/E+G9PMMitjhjXJc9gLLBhTAIbV1CSqsQh4+zu/z TUXQ== X-Forwarded-Encrypted: i=1; AJvYcCXQxAZ07Bl2hdeWk1cBfL2fktzIube8XK0IY+c10ynq9Yb1c+kZWGwYRYdL1X3h3oLsga1ch0fOPo9Y+hQ07aInBrAnEqMMQsBDRdjU8V8/QDFfVDY= X-Gm-Message-State: AOJu0Yz+p3x4M16bXwYqa+sfqbqLPh+ztc7LGNqEpokZhgEKK8twY9Hh bt8N1/E9qyUsDb75yoDHprbschgDqGQs32KYEyITg02oqhDILXYtict0ASi0 X-Google-Smtp-Source: AGHT+IH9+soogFDEvM3qfzATv+xM46StvZo3k4+MIXApLMLfrZb95ASnqwtlsqhaymD0ber1BdzxkQ== X-Received: by 2002:a05:6402:1d53:b0:57c:dd3a:f399 with SMTP id 4fb4d7f45d1cf-5879f3ac31cmr10795277a12.12.1720000239972; Wed, 03 Jul 2024 02:50:39 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58b4a97b1f3sm2082130a12.18.2024.07.03.02.50.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 02:50:39 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 11:50:22 +0200 Subject: [PATCH 09/10] clk: sunxi-ng r40: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240703-clk-const-regmap-v1-9-7d15a0671d6f@gmail.com> References: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> In-Reply-To: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Martin Blumenstingl , Vladimir Zapolskiy , Bjorn Andersson , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michal Simek Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720000225; l=823; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=4FCNr5GOWcEA6y5NqdpifkLm70epZYiiKRWR1KypcjM=; b=hxckhw6snFQZeQGymAQKqS0eL3J2chT1g/zqB+Nq3f/23Ef5U+/1Bs6WOELhWWFbyyQW0D6hS pI0dG8mxc8nCvqABfGl2sjQpU8VqFqsdaygU+yFnBzBcOvEHmee/pmx X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240703_025041_714387_230B3F15 X-CRM114-Status: GOOD ( 11.05 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org `sun8i_r40_ccu_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: Andre Przywara Acked-by: Chen-Yu Tsai --- drivers/clk/sunxi-ng/ccu-sun8i-r40.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-r40.c b/drivers/clk/sunxi-ng/ccu-sun8i-r40.c index 984ad3f76b18..2f51ceab8016 100644 --- a/drivers/clk/sunxi-ng/ccu-sun8i-r40.c +++ b/drivers/clk/sunxi-ng/ccu-sun8i-r40.c @@ -1292,7 +1292,7 @@ static bool sun8i_r40_ccu_regmap_accessible_reg(struct device *dev, return false; } -static struct regmap_config sun8i_r40_ccu_regmap_config = { +static const struct regmap_config sun8i_r40_ccu_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4, From patchwork Wed Jul 3 09:50:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13721646 X-Patchwork-Delegate: neil.armstrong@linaro.org 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 94E0CC30653 for ; Wed, 3 Jul 2024 09:52:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1LN1xy4FAraaGyXpLqTfaiBSvsbmNRu/03DrrWY3Mcc=; b=zyvWs064HuNg3o 3gBZmY1Pd+3VlPXsw2pvU0cgt4y0Ckot3UAvvvZkNPIULU0sV0L1UqWoAaquLbwA/8gZx2/+uVxR5 FL9ANaEcZ0JrMpvi7ICsYtamzhmI8nkeff8sd7NlTxGbh/1+isM+Z5f5TURTBUoxDcOOkM+KWSVh2 0WfoLzv+SlPl5sbhNINiKg0Mlq6/gm+RN+0UuIKpzzejqov4iiLXfYKC9prAgPrv/snrhIQrxqNLu Y7lSyW6shZm51oU6h46pOMefCnDzLiYkYb0g0zUSTPGp+hXgLAjf4szZgsaIRzsukdk4P1rNVz8zx LKHdItceFJtX+gTecW2w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwfE-00000009d29-3Juc; Wed, 03 Jul 2024 09:52:36 +0000 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwdP-00000009bzl-2PeO; Wed, 03 Jul 2024 09:50:45 +0000 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a728f74c23dso589996966b.1; Wed, 03 Jul 2024 02:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720000242; x=1720605042; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Z/FFHHxRXCiHESWSSzIR+30DbRf3GOBGMceZW/6eQho=; b=m016xaQJyHwxnCpKbvuI/PnMdNfYUl8JyaQeXcB0Aw9lSgqQ2Qw27FT2URByk8y29z T1k8C2P7d6EFSKb1lM0aKI7G5ax2QWK6hcZaekwVY46tvdVctYYFE/49fFeTXh15ZsCS pFnqt1aQgY8hkRmhDoRbuoOANs4XgVYN3tnRq15ZitfhqRmxeTlfdeiIgk8SGdDy3e1P NS4Zpxm2vGjXpvkBvZH3vobF2V5CsXMQAfsJnh3lweNtCUL1KJOCIScMutbf+zyz1OJf RrMEWcLe6KGrl91gHyjPliC4XG5Kj7VpADOAdhpmB0SyJiNs2kWRdPpUN1dItVmnkStl nhQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720000242; x=1720605042; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Z/FFHHxRXCiHESWSSzIR+30DbRf3GOBGMceZW/6eQho=; b=uEVaKpqjamBvsAov5wUy47txkjXlw4UKnj0oI7C5D0o+xQd0/XUrOrHTTza9ndyDZU 1+8dEOPAU8nJR7VpLPdeWry+P6WR4GLGcID1s/d1CkAlOxM5iTyKTs2wx62yMRZesHVM e0oqd20cstUFThJgSAGf6i1/1LEhYtDa0tTBW4SET/6hOyR5RDZ48F/hZX4wUuNXwMhM Sn51K0dX8AMJ7+JeS8bs/IWyHY+T76KMf4Q2TGim1CceAIFx7y8ECpPbkP4ajs+niYnQ KH2RrciAEHT5zE5Dd0DkcyeID3cvwlBIS3yCWD+/Qah8DWA5t/RBYXRkMn3vz5nSz9qT Vieg== X-Forwarded-Encrypted: i=1; AJvYcCXIIiQQVIc3I8TWpAwg16MaA17Zhp5iCdG4VfpdbcoIAfG6stZJAYngfucTerCQSuj/fROnzjy+Z5J+HtWadjyXMf9pilezFoOzlVGp0oetu3CqQOg= X-Gm-Message-State: AOJu0YwvI2/Kxe4BF4Ik9D73do2a/Yc92oYSKmJV1phwpZm+6BPzu2/G zhFDkiciqhCP5R8WExCXbnqXqddsVKIBBjAI8w1hTgIuf11ZRfLS X-Google-Smtp-Source: AGHT+IFvEQQ1or7Te92RZ7ee6rZM9e+5Mnmbmp6JAtgn1kSIV+we403CXkNT3daH3fdDLTkrC72WiA== X-Received: by 2002:a17:906:f847:b0:a75:1096:bbb4 with SMTP id a640c23a62f3a-a75144b9bb8mr700286266b.69.1720000241798; Wed, 03 Jul 2024 02:50:41 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58b4a97b1f3sm2082130a12.18.2024.07.03.02.50.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 02:50:40 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 11:50:23 +0200 Subject: [PATCH 10/10] clk: xilinx: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240703-clk-const-regmap-v1-10-7d15a0671d6f@gmail.com> References: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> In-Reply-To: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Martin Blumenstingl , Vladimir Zapolskiy , Bjorn Andersson , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michal Simek Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720000225; l=760; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=0Ld8vX9WBeucJVIFv2KTKTHdTYHtYqJmnFDn01dCNek=; b=qbAZlsyWzomXPwtnqnjjR10PqlzCLG5uVxcNmtMDRmfWhY+nLBfhZqS5clqsqtfVrERC45aqH MoIjvu7D0tkCoOqeHOgE9Tak9NQ52dqqmYQ7r9zdNOTlkalNvb0TusC X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240703_025043_885385_1FA09778 X-CRM114-Status: GOOD ( 11.98 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org `vcu_settings_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/clk/xilinx/xlnx_vcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/xilinx/xlnx_vcu.c b/drivers/clk/xilinx/xlnx_vcu.c index 60a3ed7c7263..d983fab12756 100644 --- a/drivers/clk/xilinx/xlnx_vcu.c +++ b/drivers/clk/xilinx/xlnx_vcu.c @@ -68,7 +68,7 @@ struct xvcu_device { struct clk_hw_onecell_data *clk_data; }; -static struct regmap_config vcu_settings_regmap_config = { +static const struct regmap_config vcu_settings_regmap_config = { .name = "regmap", .reg_bits = 32, .val_bits = 32,