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: 13721623 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 4F784C30653 for ; Wed, 3 Jul 2024 09:51:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=tjxB4KcUaWQh3jg9jUAlCf5iQpZ5CojbNVfQpTYS6OI=; b=dT8JxI7imfjWKsFwaH/rqxV7aw 9ob7DArpNa6Sj8MSS7cl/YTC9M+IkwXxCURSamReZzAUZMlueZ3yfoKhRmFo1tn6d/3FPkMvDHlLX q/5idlMBGJEmYXykKgV5rgP+xcETry6CL4epApJuF5BxoAtF6MMMdaRCwz02MEXKkgM+1IdTbkYjn vDmNrV1tJz48agj7krjsDY3fp8kweUJcYCpaX1YRdK2vHFWix8CD1YM2JXMgz645lnjWUl+JZ5plr Jn7mBjiVc3DrwtdoqlcDIeJppj+qvehLaysBYqrPCzvRqI8K1tDQ7KnLNeTU8ZzEsSFzmhDKrK9Ym FVxJbIcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwda-00000009c5P-41Ge; Wed, 03 Jul 2024 09:50:54 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 13721624 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 05704C31D97 for ; Wed, 3 Jul 2024 09:51:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=mYmIYCmqwVvji/gLlU74cbPYmKHONbdVpgfdzYyiV74=; b=eac46L0iGBfCLAGQojfqOa47bU jDcQD0IaWwneDfjL4vrku7mG84vkMWmHJ6jTmer7oXgT0WX0xI7rU/ZVhoGAWmWl/8NISGWVMOHpa y9/emH291WhGh/xoCkgUGggKbpLeZsZBNAJucWpJ7Pd8g+tsyE6raQ0MgzIcH5k06YSFGoVpK7rdx xUj/aEPqRXsYzCH+jOoE9UHNIE5PFUcltc8toLWcbe24Cp8lGpvdOgO2XGnuqZs7SNAqoBRq11txA vfcOV2G+SNXRsJ650PZi+P8I3tZh/AW1tkR/lHQ1Mi2Yp3Q/1K7Kj9WQwJR87BrGjXg1QurzTum4l J/WYhKJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwdl-00000009cC7-2VKW; Wed, 03 Jul 2024 09:51:05 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 13721625 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 58B0DC2BD09 for ; Wed, 3 Jul 2024 09:51:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=nvMEinijEwgsKZDsBmGm/iKxTFLThMpGobnSIWlzUFc=; b=YtQYZOd3OsLNhKvgn3F0Ay5n+L 0C/KkcdoFb2aFY6nh/U392qIo/AfRlRp2XKVPBCupmdyscQqeFsZ9huHMNatst1YoFM3ckMjX2hcA CGhXTbqVCc1XQeVN85CK8/lJhNp7tzGk78Y+d68TtopimB60LebXrujxC0gHRXu3WOWxE6KnRajx9 8FYXSjrQsenvje1fXS/CpQT70ACl4G3oSMKHzdgMW9fSMFZPGkfzHpYD2lrgJu8zySmAru9UVvZYv NwXfHLJMHLpaxB6ZezJgtmB+BYooXMPrWGD26dMwG7DaiFVcKZqXWXpEyQj4aGYs/rjeQgsGoHTRL e9BPjEvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwdw-00000009cHp-0xCy; Wed, 03 Jul 2024 09:51:16 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 13721626 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 B3CA6C30653 for ; Wed, 3 Jul 2024 09:51:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=Kd/sgJHBXOe9fs3qrhdvMpUQXrTXNMFaR6+MycDuFVo=; b=N6LznMEYMID1PJmxH4TnGwm226 BxpBKPcvVS4wNdGZYW7oIVrGMz7z2cdL8jtlYMu8r0ZKdWz76saT5PpBeE1ajJgSy/ex0a92Lr6m4 wW/Y+r1nUaK0fNalJKlKhCQVcIf2cbNyL27LT/kV4h7gTnBfva9WmJb5LH9fOAXhq7KLhmQt7oZd1 X4d/MlektU7WG98okCE6S/dL+IahxWZq3i4oIZ4dX+606Sbmb5GaqSvXO7b0+ZLx4fU1XIGGf/uil z+xBlviKrUHN3Ysnzyo6Ct+e3EaDgCYhLSjBjLH2F2rpSlrNNEfkMmJc9XtO/ckirY9v/0S9WJDMH 8l/8NWRA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwe6-00000009cOF-3pgX; Wed, 03 Jul 2024 09:51:26 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 13721627 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 2E146C31D97 for ; Wed, 3 Jul 2024 09:51:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=VakF1oeyZohqJOzCR2EB+e9QseEPpQNRdPS7foA4iOs=; b=HIBEztyBYCnxlIx/VBn+qjBpTV 2XxHDtMO03g2DSgfaB441YXQNuy64Rcpiewmo2p90/GbVjcDINsMb55RXEaHYt9erJLB2GdLVSJH9 i6GlhYQLF03gHC+Qm99K1rJv63W7m1jJ06PD97TDe+5w5OA7q7aihoXJwRwDM4U4LTk2VI22aUeoe RD9ijl6FBPTaSvy6hkQ+WbD4GnzEDKxIcte3Nky2TKRT+8yMNcFJjFqRDuAer93XCfeST48jqVKGa LCTlRLyVQKdIVV19hc0jszFEyy+fRRC/iba37Q4yoaaw8a5y58dLtVqJD+dKhGGCTPOzKKKGII4uL MXHTUmdQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOweJ-00000009cWE-3L8n; Wed, 03 Jul 2024 09:51:39 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 13721628 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 8A8B0C2BD09 for ; Wed, 3 Jul 2024 09:52:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=q5sGY1MHMh4vP9RTlfTXcp30OvUGJ6Up0VGY07imbb4=; b=Gc8WDhYBDa/ZKXOBnc+pZMWMrz cohBUvBkM0Cn0jVXdEPtKLJ6FKHMsjKMGQ7FSyVwheRBuLxthu1UXureyWsE16bexj0k9Fd5Oj9iV SHONf/6xOcMVPg/det8IN412wN24ecTX4cse5YTyNLZzOvzK3LQOSTLsXu9arWvOGKvfr8z8QIZJL 3dpim8lxfQ/oTVjDTk3BlRLO7wthfzTtuQUrvZwdcTZF0FJJyv8fthV7jdNpnoFfdoAAA33pBdCB1 w9XadKrrLnbf9JWbioPo9ofaARZu2HIl//VZdDSHAocFMkW9BajYt7p9j8dWcr7oBOFLgkobRkbB1 dwY+gleg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOweU-00000009ccu-2hCh; Wed, 03 Jul 2024 09:51:50 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 13721629 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 B1A95C2BD09 for ; Wed, 3 Jul 2024 09:52:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=k/v+B5h2PH1m+q96jJ+7IvzomlXuROk3OZZLA8dWAec=; b=MJONvFJgO4eiiVjHW6XoBYJ04L GfaeaGd8tDnUh8UOsrqgAhOWm+McKM44A+XrlWzDwpco4Qv6NI552uNICFb+tJmBG4Q72qnAPc3IK nFYTML6arcsnSFkasdc6H759vxo4swXTe0TdK4jhFVH/e80HHRwy/GKs4Go33RhIZXi32TPQPTgZW dHEEsbLt8/pw59a6K7/U5Wj0kru0A7bkskneEFp64l6XhEXniCLGQVDDNsjZJGMZTwzLEKcDl0UH/ kkwYq2gcNiw3JeObDgGHgU+e9qQFHz98ZwPjC/dJfJvMlneqNiMHZkBfhkbvKHMkKbUTtglBcX1xW Yvf/HoHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOweg-00000009ck6-1DQN; Wed, 03 Jul 2024 09:52:02 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 13721648 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 29202C2BD09 for ; Wed, 3 Jul 2024 09:52: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:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=wLgsGqmc7BPqHMYWncG3lDrLlsc7ZfRJcAq4ykKg8iQ=; b=zTjrEvaWING9qrZ3v/nuPqDddN +hqzmdwSarmABG6SXSDlqMzz+w4bH6bziLoVE/iCxGumGAIbJm5qb6mUdP3uZIviqcDxM71wT2pPv TBT0mBhSvEoN/hclDd8fEgKnWVe6t+d109GaApbZso0TV/YJI3t6d62CKCa1VpY4JIGYWZCBEcYHA EVbddpF5V5qJrwaahkRdbIQxAPe58UDf4TF09FKo80Ot+3kKP+xAURC35fKnln3addN1JFtoohigO p0XKR3AuyS4FsVBT/kDmWpWgGyyhK8ICKmZQGC6XZXsnq4Jcqa3e0cl34a+8hduP0VOQwAyMZP21o RRBpGshA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwfC-00000009czm-1JJV; Wed, 03 Jul 2024 09:52:34 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 13721647 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 699C4C30653 for ; Wed, 3 Jul 2024 09:52:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=iiCqBhqUCgc2qlo69kMyfb9Kw0XmXS+HbWPYR88AKtM=; b=H42OJRuhprt+nqiXSL1FECLSc7 LRgNaJ59dSCWtmNz84maTHfGlXffa4KkZmnYMafGmwGSNQDdXTJqDFtaVt3omU453mSh6N6+0l7r5 9BS+VjEHDi4hAZ/Vq4M13okmwiZTONZ02VMffGm5n/p2lDY+jvLPR7UNgxyotgOzx0IpPntUH3up+ WPnILTPBApj7ILTbjqfj4g0QmUh8w/5SR905YMxyphncVoavxH86COTLmOGybFpo29guIGjQ3flK4 aks8OKcMtw/DVwQJ2/ZUt47Xuh8aYqXF9lJghJsQED/qGK2nif2bx2rzBFraCToIhFSnetPy36qOg wR2ZVjsg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwfE-00000009d1a-07QK; Wed, 03 Jul 2024 09:52:36 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 13721649 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 3587AC30653 for ; Wed, 3 Jul 2024 09:52:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=Z/FFHHxRXCiHESWSSzIR+30DbRf3GOBGMceZW/6eQho=; b=XOtqUJ3cP7YlJbZltU8Hw6hkmx CNTMKccXAoJT8DUqWOE6IICVT9DufHwKGu/P57hTWDR2lxGPvh5EgWSJLDO9uUNPy4pNZIMN7pZN7 g4rb6NIDQ/2YDJCOlgLSse/OHoP5WE7EFXfHjzpmr8BO2rmOlWf/wUw8vHKI5xKsgyPlJDxMT8Oau LC5u1lUtlMZeJLBVJf7XDleNaGuB6S4dUKi/DEvcypqUNLyMLeYg7k+hoa8QKX4rkh5U8cvhYzYlm JwUAFj1/63sZiAY4jhWug5bCkawGS9Iui36UAU0nuNZPdZtvbK4BSPktRMaYSHbANKqQDqwXic3JW RBe9DbIA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOwfF-00000009d2x-1mCn; Wed, 03 Jul 2024 09:52:37 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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,