From patchwork Sat Feb 5 10:36:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 12736048 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88F90C433FE for ; Sat, 5 Feb 2022 10:36:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379715AbiBEKgw (ORCPT ); Sat, 5 Feb 2022 05:36:52 -0500 Received: from mout.gmx.net ([212.227.15.18]:59435 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379703AbiBEKgv (ORCPT ); Sat, 5 Feb 2022 05:36:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644057395; bh=3hZ576UTl3/lTq+uXDRzn9J611V/XEzqawADOC1QOxE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=lfQ2S/lUVhYnB0SrSbEUooYGCzSV9SmLiP+0K3rlclLiDG3Y93oAU7r4TWQEKHBzc P6aDjtGT0ONnQDrYJOgmEo25SLYc7XcoHxq9jicDuS9bafYQgrTwJP3KMB3p+KDJ5p nBTPWNDRbWHMExVzHEd+wQMx9qStsYatnfZr4wTQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.194.160]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MIdiZ-1n2IBr3nAT-00Ebbo; Sat, 05 Feb 2022 11:36:35 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-clk@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , kernel test robot , Michael Turquette , Stephen Boyd , Vladimir Zapolskiy , Joachim Eastwood Subject: [PATCH v2 1/7] clk: nxp: Remove unused variable Date: Sat, 5 Feb 2022 11:36:07 +0100 Message-Id: <20220205103613.1216218-2-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220205103613.1216218-1-j.neuschaefer@gmx.net> References: <20220205103613.1216218-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:q6a4fF67vwV9Q2gA4ypPC6NgQDlJQUlmeAr9vKgZCkZuqBEySG2 2ofC6Tkp4doIVDc6chHBxl1+2bcpp2Ut7kRfNOKj7AvLc2y/ntflmq58yay2npkRurLR4pc QjWyVukMyWreSL3A0hw18bSFrPvqkk13c5w+0is7GXgtLN/dIgMUPnoSTZTLpvPkqJgXf54 fly8BWQOHGGypjV8VxB4g== X-UI-Out-Filterresults: notjunk:1;V03:K0:4G9LrCCCF/w=:gWZbduS6zWFfd6ebgvcF/M 4qnuWJ2a/sg7nhNLMzxxPyRc6K6LLJ9dmEQzO5YytyPLYhfhOmXMFZdFjqAAPs1ZL9aCWNox3 ky1ie+KMmYt1MvlyVH3rc8yOdfWToU0b2PfPHgBPNzFd4hIt3YgMOVddpFIbxaeBcat5yNe7R iMpkf/3lNgnfu+u+cLhWEb1BGAS5a86wUOkqzKOivfb43BEQUm0ubyulAl6oOBXX62Mj9P5Et cSL5IFWDUeruzQNMTbWIsVPtBh9SeOcaYIz8HyQJZZT+bBoj2a11o+FRgk/JH9ABLDFFbf01l WbIg7OCc0LUdFrF2DihU6MdISaoJwjAucqmQn4hvvvEbWxDF520wN3WaJ47utLpdsCcVk29IY Qpivs0nXxobg61Sz2M6jM0lW4d/JlfOwQewLqaQIRmUzlC6E/86ijAZ1H22158YR2P11whBOy BkzXnHIRk/cAmEeAn98PaGjpPDlkvLPFKkmfsOsrC0DEo3RtrzWMfR2XZpeTl6Rtly5iLYcHt VhDR1SKG3FBVdjizJgvc4XMAX7OmiBlJV+Uk3ryi5rPsWLBiBBFnPF6LTSMrRCo+kD3R9YnUu L18Pmycj6BPe/RdZR7TXumYpwMUy+AeRwfAjTpSixrihgNiZ7jTm2qQo8fPIXTfSn4dXQNux/ at5He9OZEbovl3j7wUjVesOlrgBOT6DJUWOj6S+TVs6Ky9V8dRJjVwLjCDNSTo4Y5siXl3+WP 3BJOdYsDtbiELym1FRfS1TYxYcP0ulUmP7WqJLkjtQYzrHvbPvnAhX5Y+pNF906tm2Ik4U3bS sX9xdkyEE/ttloZKK9WLFzk+IcoZ8A29QUHNtRwILQrEievTdov8zvhIa4TmIxl8RUru51xTy GJLUhlwdhmz2kjDCqLCV0q02wYwK/Q0uyy/Se1RQzne5nncPPeydpiF2PcebqSic8HJebn+Io AHJBVyIskHzOBuWsOzb/xPttirz/LYr6AEyPLODFcL+nctHV5JmKIjUB3FwXHNFetfRpoqp56 aXFGKEcQ/r5Sc2raktEfDP6si4quW6B0KMyTM6lyZiOF+8cLi0hw+rlkJ87FgJBURYP0rbb4G jBdv6b/kOJAr0o= Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org GCC warns: > ../drivers/clk/nxp/clk-lpc18xx-cgu.c: In function ‘lpc18xx_pll1_recalc_rate’: > ../drivers/clk/nxp/clk-lpc18xx-cgu.c:460:13: warning: variable ‘stat’ set but not used [-Wunused-but-set-variable] > 460 | u32 stat, ctrl; > | ^~~~ Get rid of the (apparently) useless read from the PLL1_STAT register and the declaration of stat. Reported-by: kernel test robot Fixes: b04e0b8fd5443 ("clk: add lpc18xx cgu clk driver") Signed-off-by: Jonathan Neuschäfer --- If the register read is actually useful because of a side-effect, please speak up. v2: - New patch to address this warning --- drivers/clk/nxp/clk-lpc18xx-cgu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.34.1 diff --git a/drivers/clk/nxp/clk-lpc18xx-cgu.c b/drivers/clk/nxp/clk-lpc18xx-cgu.c index 8b686da5577b3..349eebf69ed93 100644 --- a/drivers/clk/nxp/clk-lpc18xx-cgu.c +++ b/drivers/clk/nxp/clk-lpc18xx-cgu.c @@ -457,9 +457,8 @@ static unsigned long lpc18xx_pll1_recalc_rate(struct clk_hw *hw, struct lpc18xx_pll *pll = to_lpc_pll(hw); u16 msel, nsel, psel; bool direct, fbsel; - u32 stat, ctrl; + u32 ctrl; - stat = readl(pll->reg + LPC18XX_CGU_PLL1_STAT); ctrl = readl(pll->reg + LPC18XX_CGU_PLL1_CTRL); direct = (ctrl & LPC18XX_PLL1_CTRL_DIRECT) ? true : false; From patchwork Sat Feb 5 10:36:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 12736047 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C764C433EF for ; Sat, 5 Feb 2022 10:36:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379711AbiBEKgv (ORCPT ); Sat, 5 Feb 2022 05:36:51 -0500 Received: from mout.gmx.net ([212.227.15.18]:57637 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229907AbiBEKgv (ORCPT ); Sat, 5 Feb 2022 05:36:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644057396; bh=XTku8DVkGtATOVS4JRruDvYd3AFKADqd1JnvizUrZt8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=IGYVM5g+r3kUICH14pLQ3fwBFV4Xd1Qfjm7oE0p3Q1g4S0U4arxwGcs/FdDFWJDN4 yJaWTvPyQ4dnKWe+Nkub7A9JxOdEdjHnNr9/ZrJP4LjS4EvJICo1a97KFZSV+wlW35 dNMWNaVjvg9NNx4yBFPzcSWIlJHS6JE7e+AvLYmk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.194.160]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MhD2O-1mcGe62qmo-00eLlw; Sat, 05 Feb 2022 11:36:36 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-clk@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Michael Turquette , Stephen Boyd , Vladimir Zapolskiy Subject: [PATCH v2 2/7] clk: nxp: Declare mux table parameter as const u32 * Date: Sat, 5 Feb 2022 11:36:08 +0100 Message-Id: <20220205103613.1216218-3-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220205103613.1216218-1-j.neuschaefer@gmx.net> References: <20220205103613.1216218-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:pGRh6WQIF713X8QbMbvnIjz6nmTmChhBRYqVCnXMbAa28FgwIb8 ExcOOIv9wd1tbdxdcuB1A6d51OYzqXGjPKnpPG5W7EdXUrvRHFPsont1bIwvjkmU6MNdX8w iKHq89FSYJ3tDTMFXT9Y3wS1k4+HI0NrknPVsADqLAV9Wz6Y14j63ezwwRoI06uxtZ2w7/Q CRFK/v/mGy6FilfHs1gVw== X-UI-Out-Filterresults: notjunk:1;V03:K0:Xv9S181Epmo=:erMDETCxICsrcs6+SJsBiZ xSqxV0SOnrr9GDIxVGbVkuK6SV/M+0oPe1sIg/PTQBXUaVQ4oRyMnzLnScDHYgKo21rvyPoO+ 7FDK6/Eisn77Ddy4eRQVpUEiKHunGArXtoBbZZi6SwccvVd3L1RbzaUvBf7kyh8Y2imNrRTqG e+SHDbS1jXs/MeB0ADXE3NeojqoLxMDRNuD3Bjsk0Ef3NBDCoFBKceaquw1DjTOpecqzkxohm /EADaHZTizK3oYbUFFtD8snbx8+39/zfnRH6mPDzShL4lqiEOT1Qdeg82g7/kPbYdPiJ25AM3 0EeRXhcXQScdf+pdIUDvNe3AJpkGh+ie1jogirzLpaYB0e5JahCflIOODh7ZGaTBMzONe5BxB 33w/Y2QtfxAalaiGgQmDNaxrZeQzqkgNFlKIZoQ4HcPfTqK8cdKx1Wi3x3elCoT5g/km1dCcz YFccUJWZf2ztGIRAI8BHRDz3JN6u9NKBQGAAphDuCdDmq3QNeQ5hxKYq7BPxJ2/+CL7U456ai M9IOodyNJD/5xpL3MfCKjMuDBxVEzVIqmEimAZL88qJsV3uBQ5Oy5qS8MTXsNANKNCuwq2m7M h++fsH26q040TeouEDMLB2sjxOi35f9X2om8QeqPq0wBBn/c0UobifbhiU//u+nJpu7p4V0Og gglVmm6rz5+Nxruj/XjPGaPzafYiJfCrHIo8VNwh0ue9hyd9Ff7QPgl7YDAz0rC0M6gRutyxq gP+V6PLOiLpHuohJ9FmLG/NPfyDxmThThV3ly2qv2G8zM8ZAJMqd5b0bjSE002+0odcvHQtYc tdeEMiZktP5vBBXpMra5ZOyxhTIREAp+5yx1fThRMbvQ6cuh/v53D44fIlYZf13gXNVoIfVfh aCGgpPEIzYJa2NFofiR/IQl53xWazPxQ7EXA1jDksXLligB9gmxFypQ/4/iUno12DXdfJi7Xd y0keOVcd9PYy/tFPm3Eg8T4RxLBUfTHO14HA62QxJ42VmYdtb0Hf4Yk5tuYQqAAQhflWwY+Fn yz+X4i+80dk0qGtsUJHgd1rE8L5ggnReKDO3nM/gZuCz2zqg5xtIGczuS5X6GAOSKQiIk3x/+ mj5cJER/qToRhI= Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org lpc18xx_fill_parent_names's "id" parameter isn't used for writing, so let's make it const. Signed-off-by: Jonathan Neuschäfer --- v2: - New patch --- drivers/clk/nxp/clk-lpc18xx-cgu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.34.1 diff --git a/drivers/clk/nxp/clk-lpc18xx-cgu.c b/drivers/clk/nxp/clk-lpc18xx-cgu.c index 349eebf69ed93..c23ac463ab0fa 100644 --- a/drivers/clk/nxp/clk-lpc18xx-cgu.c +++ b/drivers/clk/nxp/clk-lpc18xx-cgu.c @@ -522,7 +522,7 @@ static struct lpc18xx_cgu_pll_clk lpc18xx_cgu_src_clk_plls[] = { LPC1XX_CGU_CLK_PLL(PLL1, pll1_src_ids, pll1_ops), }; -static void lpc18xx_fill_parent_names(const char **parent, u32 *id, int size) +static void lpc18xx_fill_parent_names(const char **parent, const u32 *id, int size) { int i; From patchwork Sat Feb 5 10:36:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 12736046 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5724C433F5 for ; Sat, 5 Feb 2022 10:36:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379674AbiBEKgr (ORCPT ); Sat, 5 Feb 2022 05:36:47 -0500 Received: from mout.gmx.net ([212.227.15.15]:41089 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229907AbiBEKgq (ORCPT ); Sat, 5 Feb 2022 05:36:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644057397; bh=7Jnhrvq7jRctQBKS0gpYrwPxRFguQ8hr+Yc62pb/vc4=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=h5xsDfehoCDPNAR4CqXfY7qEdmJ+UiwSXXUx4GhwL/DsiVmXrRDbmAwvSbgArXBgA Lx3+uXP2PK98ZLschL1H92KDwhsQ7K4YK6WsSiINYhlZktk+Xdfjv2mz0a2XTgyXpj 5oO8qnU+huyXj16752LWYpwk1LTwxNaQFweEec4g= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.194.160]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1ML9uK-1my4pD2x1e-00IGtB; Sat, 05 Feb 2022 11:36:37 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-clk@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Michael Turquette , Stephen Boyd Subject: [PATCH v2 3/7] clk: mux: Declare u32 *table parameter as const Date: Sat, 5 Feb 2022 11:36:09 +0100 Message-Id: <20220205103613.1216218-4-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220205103613.1216218-1-j.neuschaefer@gmx.net> References: <20220205103613.1216218-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:2D604PBdLT4aQ0NrLOoct9Yj4ORp9f+pTiavGBxkK+l4ExfPbNu 6omMJ+9sB+rUfJ/HjP5GrPQVPKRcQ+BCWK1L5lnUH/NTA9HMkwuWPORUYZpkoMV9NQPVyAo S6dnuR05xlN3R5TzXmqtB6U/oSLCESJwsY7U7NdozfjZp7UUIaBfegp9ByyVzaQqInwX7/l ESA651GAKBGOsmUWU3B5w== X-UI-Out-Filterresults: notjunk:1;V03:K0:zeIonvdIsVs=:9ahvsbG6OrJxncXAPnYrh7 D9c5I8BD9T1tpxsmmgL1EgMpuH+JudYHN+HJp0GlN01aL3thwzAULR/uqv/TR8J2sukh7zXJx k/Uqil5oR2ETLEIepha2Fb7AfVse7xIuce4WzRCCtqb3c0fjrUTjVsyfqZaKinwQ+j/Q6DYJW dlIk3NxxLsQ5K9WqhRyzLcmyKThgm6kTA/hjf5rqSnFsGQG3U2oZzcQrdVrqSqskQYW+0ymot leSy7eXTOZPgK6mfSpmTbTb5+sm+7N/7yE/0S93jsns2hv+chhGkCly3sN4EkTKUh1UlMg8GI Kn5ziB+NojK80bAxfd2y99XvBzhRz67kiqiDR7LVX3IdZjTvC4U7eZFr6dop2ih7JJZZxhoYC O/KEolzZeWFHQBL5n2sPGPN28Tw4MQIZ6XCD5IbA5MKJJxshit5sRGHWpss53uvEhD8j0r82m QA1ejjFOsCr2uwpwLHi2iKVp2Z99m8ZfZI2lsL89wrN356o6UL2qk98eR+FHdiV2f5jI6gJqs mf3NkKZ3v+iiMnTBDf5XK8EIra4NIKt7D6EIyx3Ed/oi/ZqWQBR9jBZprVPIph91g0u51UKs1 ZpIb1hZqRLkBEEa4b1Bz9n+jxYMOWr8fjkFNr15aoJwhOVRzmUyIKbRT58Jl3srizrOSl3ReG wHws+3YzbO+y8QqgVqcf0POHIt1wHu5ulZ4dLIb9dJaPO+6m3U/VzzyKH847IsTFv558UuGLR L2+KelCiHSQyHkHaSqu6npjOa+JPsF/h7EqmnLOYTAR29Ytb2NVPHtCeKNC9pXkCftvldjUSe 9ko3b1MPZkujO7qk+6XU+s3YKPwyQGkHKZkcCZStmkxgL7qU7DieeaSKaDyKq4PhUkOQBhO8O mUTaC+VPwM/L66kDm8M3/81j6CKf782kV4/zlrI+D64WZY9flJMIUgZ5AlJK5E78GGlPawghc J8o684Li36dVmpt72mP6rOHeY4CEg0jPNelYGbcvQz1/MA/VH2JEsc6e0tEj1i5I2orwmhKam v0QnkULmV0bOPSP+t4K2v4lliqxuatQHrRfySKwDG4DBC+GMuDwQobyP3VFt48cqZWJyYTsMr za9lWFA9wX0n6A= Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org The elements of the table are never modified in clk-mux.c. To make this clear to clock drivers, declare the parameter as const u32 *table. Signed-off-by: Jonathan Neuschäfer --- v2: - no changes --- drivers/clk/clk-mux.c | 10 +++++----- include/linux/clk-provider.h | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) -- 2.34.1 diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c index 20582aae7a35f..214045f6e9895 100644 --- a/drivers/clk/clk-mux.c +++ b/drivers/clk/clk-mux.c @@ -40,7 +40,7 @@ static inline void clk_mux_writel(struct clk_mux *mux, u32 val) writel(val, mux->reg); } -int clk_mux_val_to_index(struct clk_hw *hw, u32 *table, unsigned int flags, +int clk_mux_val_to_index(struct clk_hw *hw, const u32 *table, unsigned int flags, unsigned int val) { int num_parents = clk_hw_get_num_parents(hw); @@ -67,7 +67,7 @@ int clk_mux_val_to_index(struct clk_hw *hw, u32 *table, unsigned int flags, } EXPORT_SYMBOL_GPL(clk_mux_val_to_index); -unsigned int clk_mux_index_to_val(u32 *table, unsigned int flags, u8 index) +unsigned int clk_mux_index_to_val(const u32 *table, unsigned int flags, u8 index) { unsigned int val = index; @@ -152,7 +152,7 @@ struct clk_hw *__clk_hw_register_mux(struct device *dev, struct device_node *np, const struct clk_hw **parent_hws, const struct clk_parent_data *parent_data, unsigned long flags, void __iomem *reg, u8 shift, u32 mask, - u8 clk_mux_flags, u32 *table, spinlock_t *lock) + u8 clk_mux_flags, const u32 *table, spinlock_t *lock) { struct clk_mux *mux; struct clk_hw *hw; @@ -218,7 +218,7 @@ struct clk_hw *__devm_clk_hw_register_mux(struct device *dev, struct device_node const struct clk_hw **parent_hws, const struct clk_parent_data *parent_data, unsigned long flags, void __iomem *reg, u8 shift, u32 mask, - u8 clk_mux_flags, u32 *table, spinlock_t *lock) + u8 clk_mux_flags, const u32 *table, spinlock_t *lock) { struct clk_hw **ptr, *hw; @@ -244,7 +244,7 @@ EXPORT_SYMBOL_GPL(__devm_clk_hw_register_mux); struct clk *clk_register_mux_table(struct device *dev, const char *name, const char * const *parent_names, u8 num_parents, unsigned long flags, void __iomem *reg, u8 shift, u32 mask, - u8 clk_mux_flags, u32 *table, spinlock_t *lock) + u8 clk_mux_flags, const u32 *table, spinlock_t *lock) { struct clk_hw *hw; diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 2faa6f7aa8a87..27be575288747 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -888,7 +888,7 @@ void clk_hw_unregister_divider(struct clk_hw *hw); struct clk_mux { struct clk_hw hw; void __iomem *reg; - u32 *table; + const u32 *table; u32 mask; u8 shift; u8 flags; @@ -913,18 +913,18 @@ struct clk_hw *__clk_hw_register_mux(struct device *dev, struct device_node *np, const struct clk_hw **parent_hws, const struct clk_parent_data *parent_data, unsigned long flags, void __iomem *reg, u8 shift, u32 mask, - u8 clk_mux_flags, u32 *table, spinlock_t *lock); + u8 clk_mux_flags, const u32 *table, spinlock_t *lock); struct clk_hw *__devm_clk_hw_register_mux(struct device *dev, struct device_node *np, const char *name, u8 num_parents, const char * const *parent_names, const struct clk_hw **parent_hws, const struct clk_parent_data *parent_data, unsigned long flags, void __iomem *reg, u8 shift, u32 mask, - u8 clk_mux_flags, u32 *table, spinlock_t *lock); + u8 clk_mux_flags, const u32 *table, spinlock_t *lock); struct clk *clk_register_mux_table(struct device *dev, const char *name, const char * const *parent_names, u8 num_parents, unsigned long flags, void __iomem *reg, u8 shift, u32 mask, - u8 clk_mux_flags, u32 *table, spinlock_t *lock); + u8 clk_mux_flags, const u32 *table, spinlock_t *lock); #define clk_register_mux(dev, name, parent_names, num_parents, flags, reg, \ shift, width, clk_mux_flags, lock) \ @@ -962,9 +962,9 @@ struct clk *clk_register_mux_table(struct device *dev, const char *name, (shift), BIT((width)) - 1, (clk_mux_flags), \ NULL, (lock)) -int clk_mux_val_to_index(struct clk_hw *hw, u32 *table, unsigned int flags, +int clk_mux_val_to_index(struct clk_hw *hw, const u32 *table, unsigned int flags, unsigned int val); -unsigned int clk_mux_index_to_val(u32 *table, unsigned int flags, u8 index); +unsigned int clk_mux_index_to_val(const u32 *table, unsigned int flags, u8 index); void clk_unregister_mux(struct clk *clk); void clk_hw_unregister_mux(struct clk_hw *hw); From patchwork Sat Feb 5 10:36:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 12736052 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D342C433EF for ; Sat, 5 Feb 2022 10:37:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379752AbiBEKhG (ORCPT ); Sat, 5 Feb 2022 05:37:06 -0500 Received: from mout.gmx.net ([212.227.17.21]:39983 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379768AbiBEKhB (ORCPT ); Sat, 5 Feb 2022 05:37:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644057402; bh=QROgHSfb3iMEjYa0kRt/e/0z4UVT4OJ4cUBSHkYo0N0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=PX5U8pguYOWJhMOMJGyjROg29isAPINrgR0lPeVp/u3k1kD3uP6cYdovKzzyFuZVp IaiupbIkaP1ER7aSCfUnT2J19CH74RuneK9XfoRiPQT472Y7TSqrqPMlOtgI6vhlNu l+GBarsffXSy9PTGqBUCQ2+I5+5jurN4Q6G8BmMg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.194.160]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MIwz4-1mvsxv3sIk-00KPLQ; Sat, 05 Feb 2022 11:36:42 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-clk@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Michael Turquette , Stephen Boyd , Dongjiu Geng Subject: [PATCH v2 4/7] clk: hisilicon: Remove unnecessary cast of mux table to u32 * Date: Sat, 5 Feb 2022 11:36:10 +0100 Message-Id: <20220205103613.1216218-5-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220205103613.1216218-1-j.neuschaefer@gmx.net> References: <20220205103613.1216218-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:C9ZnEZNM5TEevGBylOfbKYocqhZUTP047OiXTMGozjVJqSDGs6t TWdKaDaSg80azhRbojL2OsM61Mlkg2Yh9nHrbF328/ZPVHR4Ow65STx4q5nhLXZxHHrbFvr tBPikfsWbrGBEdf8UMA/ckIjlqN3PsQj2PRp9DFHjhXsHKKVXqhPuy6K+HIrtY52ZTq4ZWJ 78WopYd5OYof47uloKbMQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:bICYtb9YPuo=:Tm0/e2XfYu3hqg1eOOZ5YL 44UGOUbQQczOndFYJhitFgE7iNUweR9JqluTEO9KB+uLddic5cz2o3gFTr+pnCokCps5xjvH4 qbuDru7JLPfACSEnv4Q/krsyjCjZyhKCujChaZ1BYdHxMBLhD1vxgfYQLApDVFHqrB81zjxj7 WHBVhkFkE8Z18YRk7EmBQpDGzR1DG337ALNJJG/ct1ISMQAi5F1JYhHb7jy5Z15zG1+rfwCWz culH5GvPazHFIWy0TKIl8PgqF5fxevelcuIBheM/N9J0fTLXxYuADN8YYMfZ5XN+unP24ySHM a3u6pcObYR+T9SPqYDYOvsKdSm2LOqC7yuH68H/qs5JYW2k7vRHpDhMDwuWhkgQVRJq/oS//H 6yf2aGEHk3UZxs3+mV0r2PKGg7GWf3+AFdxU6bnfitKZv4dDoUOAZkuAj+B0hy0DxLbGGLkKI LsH90RAoXDJYGeaHqS41693l4DIxjyWt2LZgiSMikG3zmK3hvtRFKEMXdPv8DqJbA95bFaMx0 cSLde8828clCDxihP03gTjDPnoCxJMAK4ht7WIQ/1wABbVD9Q2IZAx1km4LrqmTBRQHVlu3vA yrEQ+w3mkY2Us9O+tC0t3gN01kzJUFYAWJ4zoDKS11p5jjdEqkRnBCSGVJ2BFdhpgWjA4tnFm rUHta6HqsMrBLfvMeou5VtwvHCjhCIIbQh89GloGJ6ubnP+Qex0Eg39HLLb7XNoBV+I0RQtu4 OB2Ui1ZjUeu9wYjPL+x4MOwOtFapCFtyNO+8KhXn4m8RTAWjcpw0PaJFMbqDMNbQdBuuKpXTc ZQ52nFM3aHdbtaq+7sR+UtoL6leaoYsPDa1+5Yi7zNoDeU3Bff9baWTV6zPVufanJovedYEfX qFBbLDbtyWQvPxpVF+4zB43VvMW8fmN3xJS+SaYg90DBcY9iI9m2CZKGXDvsInV9CJh6+rP+t m/ZTX9D7sKSFzjCpFs91DN5SKz8ygU90THk3WERzNz/xGm2/vQGle8V17kU2p1JqZNNRV70XV DycXrO2yYrhHaxSDROlPE5xOkARB0wynmKgmE6xKVCfZ4Pt19YYnHfjPHNugjhm3kOsQgQ38t e9MPkpraj87RW4= Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Now that clk_register_mux_table takes a const u32 *, we don't need the cast anymore. Signed-off-by: Jonathan Neuschäfer --- v2: - no changes --- drivers/clk/hisilicon/clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.34.1 diff --git a/drivers/clk/hisilicon/clk.c b/drivers/clk/hisilicon/clk.c index 9361fba7cd4cf..54d9fdc935990 100644 --- a/drivers/clk/hisilicon/clk.c +++ b/drivers/clk/hisilicon/clk.c @@ -162,7 +162,7 @@ int hisi_clk_register_mux(const struct hisi_mux_clock *clks, clks[i].num_parents, clks[i].flags, base + clks[i].offset, clks[i].shift, mask, clks[i].mux_flags, - (u32 *)clks[i].table, &hisi_clk_lock); + clks[i].table, &hisi_clk_lock); if (IS_ERR(clk)) { pr_err("%s: failed to register clock %s\n", __func__, clks[i].name); From patchwork Sat Feb 5 10:36:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 12736049 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE04CC433EF for ; Sat, 5 Feb 2022 10:36:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379704AbiBEKgx (ORCPT ); Sat, 5 Feb 2022 05:36:53 -0500 Received: from mout.gmx.net ([212.227.17.20]:59957 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379716AbiBEKgw (ORCPT ); Sat, 5 Feb 2022 05:36:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644057403; bh=xpHPe4wIR1exAc1cF2StueHrTXV82PgtaxfrH2HYC4o=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=F1hcHNjBPdOpVMhHX4PX1sAeqOyqXU9N+j7+o9mtjqiyY/XlK9xY+7wG5kcX+CQx6 /1o1YHFzv1DnCRzlA1qzSKoQAiK6jjRUG7xhsDzP/nPd1mCWwPpnBNvIdT6adUANza e9fhGgWsU//vRKXUpFwCgvw7WBm/bgjXkw/78Uks= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.194.160]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MDQeU-1n5spZ3CXG-00AUFw; Sat, 05 Feb 2022 11:36:43 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-clk@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Michael Turquette , Stephen Boyd Subject: [PATCH v2 5/7] clk: mmp: Declare mux tables as const u32[] Date: Sat, 5 Feb 2022 11:36:11 +0100 Message-Id: <20220205103613.1216218-6-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220205103613.1216218-1-j.neuschaefer@gmx.net> References: <20220205103613.1216218-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:484u0cPlgTTPxmQUrE6UBAsd2xifETbVQ4jDXYSG2AA02TcLyJV Z/q57Lt5jzmjAdkR2wbfEQkUM9S64enKizCYuqklwVK/0dNMPL4S0qR5DSJ1OcQDjTWLaAU v+0DzGcQeZnvuJxJv2G99RLlE+3BPV1rv+4CD9akUp+84V7wuT3VM+zpC4UNWUs4TFJXUdj ToD2UjzJ5L09A2Ty1Qr0Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:ETKSHt9upWg=:8XbqSvp38n2FkdeyGwyqZD zKmIRWZfBP0x47TbvBruXGep7rUYFPeC4pbc17AKPja39KK4SxupERoF6xZooLulqX0iiCbnl 6DIVtQMoUyY+VH3Fl1TVJAwEyeSfGx3HKFffSESTb+SJcl3XpGdCQmXLGHlGFhZt12KSPoRX8 82lLwkAkYnDzbTdeC4Km2Qp8EGSbNwNxqkzDvhbA9ZAdExgeEV2eGZfQ2KyJiHmL/epDFzGIM VUCf2Kh5q6s0S3oyXggmzV+Fi77qIpNNfm7ZYfeeF5e5aTI7fdOYvSmgnx/HcxzEY3Rp8rDm9 fc4sCGgNet30yfHKT3rFzvYBcMISd2X/Go5R5q50aBM5pMmyc87p7ioQgKCAxvAd5dkNAFeTx 6RI87k+MBX9Km/insGWkQMUn4iNoEsQPh9XV9zBkRUsAJB4qlhNjvLTtDYC4H57zDvS6R9mW0 buPClkgkF+sGXUL/m+C1Zg/Sl7Z95yllRFQDJU9AR232upO0gv4NMAS5ROATMCPNo6DsshWC4 VrhBof7E6fxjeV/CKFsojOBF5TIyV/T5Hx+QB1KyiHzz3eo3KVP4QWSjy/lVF2Jl7hyScKmCs n9fwVi3a7ghv2gtPBM6NyaE0aSeUFsimK8ZpShhM09aZjfUN1PHzIbdE+Gfu6LA28dM2GQW71 b7iEY0/vZUFw/ftpZS4t9CoYRFfX7C+PIPllhECmZeeeKB6w3UmgoW3kcGiW89LShrnFFSjwy 26JOqX14Qy9qyhuW/HRWDtaUMbJjDqYeX04SbxUM+C02XgJFOCSFFys2S5gh32AXrSoGvBMfh jlvAvtR5q77D36PL453WlNYLuEPV2cczfvWqsf88C/OxXFv118X0bNGi2JIGC+wSejLM+jN2j DcwpSAvefsBNrOT4HBYfaXAlCDd8nNlkufQ/nV/huDRccM4mhUV2f/ZlZPGxChuS6maB0+EtZ xGik6iahSTO39XvRSqoU6AYg46I86rf+T+QcoaObX/JAcVCGXMok9Mr3k9dbBU3gpQPszpIUE IuoIAXTNSrG5U91PePH+PU4F7Gu2EG5W5MzKhSmMG91SJR+nhGzCGtfkdfk3DcK7+Tu7pfWuy vbCCcpDyU9Nr6Q= Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Now that clk_register_mux_table takes a const u32 *, we can declare the mux tables as const u32[]. Signed-off-by: Jonathan Neuschäfer --- v2: - no changes --- drivers/clk/mmp/clk-of-mmp2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.34.1 diff --git a/drivers/clk/mmp/clk-of-mmp2.c b/drivers/clk/mmp/clk-of-mmp2.c index 0839fb2049e94..50a780274ba0c 100644 --- a/drivers/clk/mmp/clk-of-mmp2.c +++ b/drivers/clk/mmp/clk-of-mmp2.c @@ -317,9 +317,9 @@ static const char * const ccic_parent_names[] = {"pll1_2", "pll1_16", "vctcxo"}; static DEFINE_SPINLOCK(gpu_lock); static const char * const mmp2_gpu_gc_parent_names[] = {"pll1_2", "pll1_3", "pll2_2", "pll2_3", "pll2", "usb_pll"}; -static u32 mmp2_gpu_gc_parent_table[] = { 0x0000, 0x0040, 0x0080, 0x00c0, 0x1000, 0x1040 }; +static const u32 mmp2_gpu_gc_parent_table[] = { 0x0000, 0x0040, 0x0080, 0x00c0, 0x1000, 0x1040 }; static const char * const mmp2_gpu_bus_parent_names[] = {"pll1_4", "pll2", "pll2_2", "usb_pll"}; -static u32 mmp2_gpu_bus_parent_table[] = { 0x0000, 0x0020, 0x0030, 0x4020 }; +static const u32 mmp2_gpu_bus_parent_table[] = { 0x0000, 0x0020, 0x0030, 0x4020 }; static const char * const mmp3_gpu_bus_parent_names[] = {"pll1_4", "pll1_6", "pll1_2", "pll2_2"}; static const char * const mmp3_gpu_gc_parent_names[] = {"pll1", "pll2", "pll1_p", "pll2_p"}; From patchwork Sat Feb 5 10:36:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 12736051 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4941BC4332F for ; Sat, 5 Feb 2022 10:36:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379734AbiBEKg6 (ORCPT ); Sat, 5 Feb 2022 05:36:58 -0500 Received: from mout.gmx.net ([212.227.17.22]:34813 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379725AbiBEKgz (ORCPT ); Sat, 5 Feb 2022 05:36:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644057404; bh=un66HwMXzx1+JWKGj3Ie+e7wbnjBXvxVWjU+DYbV0ps=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=b0dHsqC2bTTP6Auv031hNteHBdcxWqgiNdTM/Gulghm8yGwYXtp7dG6F+kMV2zsa1 frrRVosWIJSALbBxc+atyIdgkrpogUKQRWQBnNSdGYtYBTNxE1E/GrBSvw7+QnNVrj 3L+CmDJyu/CRb6MOg5CQ0FGLN1RGFkpNVSmSYC40= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.194.160]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MUowb-1mq8b72tRB-00QhUl; Sat, 05 Feb 2022 11:36:44 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-clk@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Bjorn Andersson , Andy Gross , Michael Turquette , Stephen Boyd , linux-arm-msm@vger.kernel.org Subject: [PATCH v2 6/7] clk: qcom: Declare mux table as const u32[] Date: Sat, 5 Feb 2022 11:36:12 +0100 Message-Id: <20220205103613.1216218-7-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220205103613.1216218-1-j.neuschaefer@gmx.net> References: <20220205103613.1216218-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:fxvWhth2K2e6hWUBAb7ugpC0GFHmNxb4qSUdCbpXl9hEenG/ZyC x3mNaHkDMCIW/wP2NYIClOXktUsfwIsfXOV5xup1MIHgcZHMMYsJqKtHhTaF/MonDN8gjGH f2Ie0DzocHOecH2Q2qxo5rpGvPYxkhOm3Ws8xhNMiKMlZSkzWQDjSa8v+l4nIXAVLfrgV3o 4HIlwg9JibRc4oeqv2yxw== X-UI-Out-Filterresults: notjunk:1;V03:K0:fqEniijzM18=:4yD3sWjBxqkHBCmqdtYOMm yVZ5gOB4oPSQhfv/je9cWReRnlmZE0pJguTyKh1JYCg86/zQW99d9w6HS/u1H3RAv7vAwO1Zn qE8IRO87NBlkVwFJSuVWaKPcfJooXB0MG7DsQddt2YM80uxewPDoIWnJGhehwC8IPCgDC7h1T x0BTj/Q6/ZLeRv1FgIQX/3SxGQiZ5FBFBdnHyCdp5FCZcLZQahN2+PR4gaWvAgwEQq9CZRGug 7OkLI275/PHoI7VBtkf7A0wR6HbIClf7NhT4xbGnC4L1OtdaJxCrypCv0PLFLUd5xlGE9fyqQ J+r1kbFXiAV+Ojf+/e/ExA+SD+TVGhWN3p5cOjJqNXcDVUYnkvpaOSBhGfDwp7hdQQTIXweif 5BFZS0tJsYMo9vaJ/3N/79RCIoDHM7jv1GhViZGQc1Fkx2jwqhcLRR1RjGppaNo2EYtYi/cG+ Y5013/SJrkYpJR0eGFtEkz6KxkRg02mPaKm4OHKA6KQGWN6vEC45jEI8iEcBm52HkdJFYYCTd 62bjM9P3p+l4s1BrMbLa6UBT12G2I8S7IsjxxzgsJ36lmWYthZeEh6zlChPOyxMYtGAkhZD/T pQzuSKWn4aRp6K5va99+ezxDstqPwoc3Bpg9RxG7vQKJ0MmeP2wn8sOzjDPYzIc+AskdxjEZh mH3F4xxM+hfWRenoN84xsW/V9Ah1EQdkEBz9+GoNgePuOdqZXAA1dsceP/ajZ8BKlEDdxDPkc dlhiXTGz4CbUB2l7U4t/xQpB3CIB0R8KAs8N+uncIBSl+U9llTvjQFnzmMGa7CGUyHw4Jjw9j y6IWJwS00bRY13utKPlxQTc5gaYqSSdALM/0BHBeQ2I08Pk5HqAWKCswYC6aw2VxZ+chMwiaU gKpPUIciBo1uTmNpQ+7GmOtEezYVtsHDnBfiMpnWYz/8WimJcc9nNR4Lp7sxCtpa8mjfiPvMf aX6ZjdsakdF+3h88EBV6cqzEYfx5Pf4o5abexggVOsGeV3+CGh9/mT2PspF+sEuoF3C5nOnd1 bNQgGAZxjSJq/Qe2+KldgRNFU5uLxPV7SbHkCqC4PsP8mm58Cw8RfAVqckc2hbUuR4Baqs/8D djOThNPikw7xP0= Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Now that clk_register_mux_table takes a const u32 *, we can declare the mux tables as const u32[]. Signed-off-by: Jonathan Neuschäfer --- v2: - no changes --- drivers/clk/qcom/kpss-xcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.34.1 diff --git a/drivers/clk/qcom/kpss-xcc.c b/drivers/clk/qcom/kpss-xcc.c index 4fec1f9142b82..88d4b33ac0cc3 100644 --- a/drivers/clk/qcom/kpss-xcc.c +++ b/drivers/clk/qcom/kpss-xcc.c @@ -17,7 +17,7 @@ static const char *aux_parents[] = { "pxo", }; -static unsigned int aux_parent_map[] = { +static const u32 aux_parent_map[] = { 3, 0, }; From patchwork Sat Feb 5 10:36:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 12736050 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB368C433EF for ; Sat, 5 Feb 2022 10:36:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379726AbiBEKg5 (ORCPT ); Sat, 5 Feb 2022 05:36:57 -0500 Received: from mout.gmx.net ([212.227.15.18]:55851 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379713AbiBEKgy (ORCPT ); Sat, 5 Feb 2022 05:36:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644057406; bh=FAvlJM+jb1m0qmORnVnFCRA+QzbVGz9kzNSNgqbFCdc=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=FZTWUrXvqrVrB+2nJ+vL91lXSe7krZ6jQXuR+ME6KzNTUuwMdydT/p4zg+CNtGhgp eZaDOlam2Cw3P+L1psXLqXu2rgesn9t04YVHwbBX05fX/cm4GGLqePd4yIgJkw0rl8 yH2QFpqQMq/3R3zytPaKYF0Z6bRcO4e6S0kgg3cc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.194.160]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MG9kM-1mzpLe2ATU-00GX0X; Sat, 05 Feb 2022 11:36:46 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-clk@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Michael Turquette , Stephen Boyd Subject: [PATCH v2 7/7] clk: pistachio: Declare mux table as const u32[] Date: Sat, 5 Feb 2022 11:36:13 +0100 Message-Id: <20220205103613.1216218-8-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220205103613.1216218-1-j.neuschaefer@gmx.net> References: <20220205103613.1216218-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:DGR/LqufAv9n4PU7HJES8KlhrBCuH394ssecNb0vWGACLGmH7/H H+iSub3IEzG88RoH4WFGE1/uWXP4waYAg4xFXgfFnXMldprxMRsZwdnnB+r7diNJfTbWQ2s t+9xLxjmrctTZgDgUi5bC4sswDyQir65RTfKwDRfJPZ1rMS0K88UtYiDqg+hNpUZcLP0cKr gDuOobl1j16PwvU+xaNOQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:X6UKte1m/ZM=:Y65sZrSWGZmV3Qa1u4IVqT Jt4F9IEMcE936u4XAAzLpmkPnUjQCGD0WdgyJPud40yLCzfYWa9v1oJ8IOB1X5zIU3SiRbc8P KTN+GiPp741pigkbDNDM6YebDkBZ2Tyk74+yPvYzvK0Jpl3X1KMMvzOhfIVA5diN9VOSTWEnN hfZuyKGmtVqQ/NROUPR1lzaGYkcNu/qBwnVRiHgcRz04v/G/mKO3SPXyFXDTFOUTsArI8zDAU tGaVdPGZnkRlPvCmWw8NoIS41bp3zkMscz0NoGh1FgWCcX92BGVoVgjN3q3ArpetnCtZ3hYdC iXuwG40l8at/AySYpfAlkmoXemLwP6dONeyHbGgg3tuXAyAJce/mZlI92A4GR1v/DOTG48akf rKE/5/asAJRV6d0WrXRJvmvbFH/auqtUeEsC6Oh5258aRhsxtcybEjs4ImhfHAL3RK7Nj5bfP nq0bEBBMHwqnezWw+Rnj5pxd9saSW/zqzOEdY+dsG3mpu+jfATnskdsKQRq0ZbgD7KGHQNKbW 5FeNbxo/0x96f2JFr6ujGPK4YKj/+MInl690z7OJa7tva6J4YboBDZOM3V2YYYYzg5bh5vl7/ vsllmVLQ5TToUWyhu/9oagjBPYpPFK0cMtpxjIt5fo+ZvEkAl4qgMHmKYnUu3u3dm6dGI3MiH Dtk4bMQPxZisuNJoPqfMN9zIDVVvrM3NqFuG2eqTSrSI+OJkes0G7u+p+JP9KMS7j0flKh+sM OU6iZdGfjwcxghzhQ+RYmbFzv3UoLyuoPpHo16cESaoea+E7jpq+QPWOpW18/HO/xF2ypaOuO k2wmoZWNoi7DnDIssLKWAs/hsRanU+uh1W73PbP3/Yn6QWW3JkkhwwYLyFVVElacXnuHL/iew J9bKsf44Zdi/A85t4QGHfp9t0MXP/WCqt1Zhf6nzvEVlIBWIuhJ1w+/GYWfiGXqEzib+SRc4T BdEpmLNgZc0/jFFfpztAq87w0u1R1ZFJyNnyV81Xl4joRi0lxsKQKEHOwCwb8A58SnMmMTzNq Bf9zXdy2R1TTR+hQfeC/Uo2zCeUy9YqsgIQvnkb6IBBgBRoboV7RacJh07skOJ0fCO06kZTj1 zq6CGefHXa08r0= Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Now that clk_register_mux_table takes a const u32 *, we can declare the mux table as const u32[]. Signed-off-by: Jonathan Neuschäfer --- v2: - no changes --- drivers/clk/pistachio/clk-pistachio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.34.1 diff --git a/drivers/clk/pistachio/clk-pistachio.c b/drivers/clk/pistachio/clk-pistachio.c index 76f492c7e917e..2a6d583237dc7 100644 --- a/drivers/clk/pistachio/clk-pistachio.c +++ b/drivers/clk/pistachio/clk-pistachio.c @@ -154,7 +154,7 @@ static struct pistachio_pll pistachio_plls[] __initdata = { PNAME(mux_debug) = { "mips_pll_mux", "rpu_v_pll_mux", "rpu_l_pll_mux", "sys_pll_mux", "wifi_pll_mux", "bt_pll_mux" }; -static u32 mux_debug_idx[] = { 0x0, 0x1, 0x2, 0x4, 0x8, 0x10 }; +static const u32 mux_debug_idx[] = { 0x0, 0x1, 0x2, 0x4, 0x8, 0x10 }; static unsigned int pistachio_critical_clks_core[] __initdata = { CLK_MIPS