From patchwork Sat Jan 29 09:51:54 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: 12729415 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 2FEC0C433EF for ; Sat, 29 Jan 2022 09:52:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231812AbiA2JwV (ORCPT ); Sat, 29 Jan 2022 04:52:21 -0500 Received: from mout.gmx.net ([212.227.15.18]:56499 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236293AbiA2JwQ (ORCPT ); Sat, 29 Jan 2022 04:52:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643449928; bh=xTWzcTiWk4YA2tgswfLeYY/DO6Jr+fPSD7NraKsPUy0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=R7Rc+kGRnuLNrLfmwHQTPvfUQvrJG8N9h7+Ph/uoLFg6rM9HsqGUNdxPfYllnX+jl uteHw8TDp0LDHseF71H463WrNCKPOLGFM/Wi5GowuIBX+VPBgtLZWxm6RPdg41vkkY Cxvadr3rCbsN77H9Rfk/900yZm/tfnZCYcv3u+gs= 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 1N5mGH-1mCTVz358F-017Ggl; Sat, 29 Jan 2022 10:52:08 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Michael Turquette , Stephen Boyd Subject: [PATCH 1/5] clk: mux: Declare u32 *table parameter as const Date: Sat, 29 Jan 2022 10:51:54 +0100 Message-Id: <20220129095159.2202366-2-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220129095159.2202366-1-j.neuschaefer@gmx.net> References: <20220129095159.2202366-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:PnniRrvUYxGGNMKgN9w6YLraC7UpxANcb4qbqIXoj4oF0zmXxKq Q+qwfbuwclzwDNteW7M/FROYeYfwjvjQCyD/eCXb0GSDKu1snhQj9lVm26n2y+7AJjANsJo 4u33ZxwXBVz37ZbyEr+Ax2xdjJZs1WFWJkR8c9fW9V3c56fBxj8BS4uKlBE01VJIxh2kBbr k4B+sQm/q/R/suMKlAs8g== X-UI-Out-Filterresults: notjunk:1;V03:K0:z8J9H01kks0=:khXNAhObsF6T4KNAmurPpX /ZjXTaMEdQ5CMTv7hrrT8EEiqWNqNFMnf4OKrYWKd1YTELbzfT5TDioooQuUtTydO5Bzve6Qe obIVwd0CfzOs13PCaduLNa6kXD+54IfCBQe2dpcxJe4SG5QYZu8xtcuIlP4/BcP5G5RhdxQwa vpAuC9L12/tQPaELTrHFgvGPjP2af6k/cUarkots0cCpwvJf9w7sr/2aJVP2/Cs2M+AZF+uyh ZBh4l09HTtSHA81jfVxMvg+BDLXXAwp+w67LyMeB7gGT9fGKOyAo/n5Pc9nT3AKIzSDFAR8Ia CVBxs8YF2fsMYYsqmejhZ2XqQeM541nKbaplw0irWfyFghRpbOxY+1YpICYEFH+DP6lpNgu3D MYw6E6V3iQI3rJcihfeP3KiYkK952w2X42CYbKOpXGy8g1x/xj/E+rWLFzyNGPE9DTt/K7KhB WMaDXvV2HNFmcxU8wpb4sRFPph6G+jhbMfbDCk9JT5o5gl2aDz7bjP8pxsr5PPoUHyuVLlxVv BKk8McTiHolS8DFeXntn93utgbTe2YwjnEk07WOTD4KClHuTTzUZosU+kkfB6tHmWV8H8QTe8 t8ntX/kJWJJmFcWYliTAOO5n5k+iSV5ofhlUqe7jAkw/nUPhaZ3DrDxXaJNDqU/WGAKDJo1AN VfMTopnPAylUdCF9+aDbxS/x8SAEDZ03UvTCVlHXgDpbP6OCX7vD+jEkGaOG+A7yYaZAl1AZv Gts4hWug9V4tz6CWB9WzGre1QcwsXQjVm4j+/5cGs5Fc2r9W5sh/lFPfP1y1YRpHhnwm1CtP6 iLs+vwKAcbfqc/yI3rEXy6Xtc/KfEJYyG/Akei7OWx2rtvkDBXaU2zipH0o4u+d0HxbOorffQ dXxw7Wum7IDIEE/GVA3KqJ8zO+OvRyKA7ek9dOv69e8pEuv7v8Y1KFtEy63R+QR787HqcJZ7/ JJ5e3MAt+jpF/9bZ7uaKVPyHjaoFRydxZmzFMjV4vM67peyaCuFGTF49i+8/nfdm60c9a/sK1 AXfRQqlbKWuDxR6jbjBSGTlwVWIRUG/GpFNlUjD3IjByr27LC1iORGoIHZF5G/6qOBaxAx08V fLUnXF8m96SQJQ= 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 Reported-by: kernel test robot Reported-by: kernel test robot --- 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 Jan 29 09:51:55 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: 12729419 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 21006C433F5 for ; Sat, 29 Jan 2022 09:52:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238516AbiA2JwY (ORCPT ); Sat, 29 Jan 2022 04:52:24 -0500 Received: from mout.gmx.net ([212.227.17.20]:35113 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238478AbiA2JwX (ORCPT ); Sat, 29 Jan 2022 04:52:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643449931; bh=Swrg5/t4GYSpqbq0c9I5YxcNVTHXi9plZl3rISnQv50=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=UIjyCHGkNRX3WwjfEAQ/5XJ8qVCG14YR70LL8DI5sIdX4jHK5BalcQg5z6TM3Spcm 2BNPIAB8cK1OtLdysT4LJxdgws8UmsSBecXAsANehf0VeWVO7sG4JkU+1XC9rk6qg/ Jvxs7e/ePC1paWiYkyzRptG7Wfjvxb592pIOKJfc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.194.160]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N3siG-1mEOOB0CFE-00zr8v; Sat, 29 Jan 2022 10:52:11 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Michael Turquette , Stephen Boyd , Dongjiu Geng Subject: [PATCH 2/5] clk: hisilicon: Remove unnecessary cast of mux table to u32 * Date: Sat, 29 Jan 2022 10:51:55 +0100 Message-Id: <20220129095159.2202366-3-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220129095159.2202366-1-j.neuschaefer@gmx.net> References: <20220129095159.2202366-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:3QbcZ+fgvrQPBHAbbzAUIOnXldDccNhVwsbOT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+9an1E20NKuJdGVki7bySDBc/D5t34z4/Ijc6x8DLFooI IBW5yOFM0+Q9NXsnRUOGjRtgaI0CPGZeIO+9YejvSfDPbXvGMzy3cYazMsXuHePdv/zUHuvWd OYB18TDa+Joo34V7e/KDYxiYqyVD07OGLcD1J+sE6VAv54bQXcRoPGFNLU0GguEdwHjsH9xRc /sNeGajYbnmo12fIP+PzmDlJReut0oAOUTRDaXloVLPIA+OIYkh2jJQyG+ecZqE6ALOr3/1sc ePT5lD4KQsPB5I= 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 --- 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 Jan 29 09:51:56 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: 12729416 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 4E396C433EF for ; Sat, 29 Jan 2022 09:52:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238487AbiA2JwX (ORCPT ); Sat, 29 Jan 2022 04:52:23 -0500 Received: from mout.gmx.net ([212.227.15.18]:53685 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238371AbiA2JwS (ORCPT ); Sat, 29 Jan 2022 04:52:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643449933; bh=S5j5/Sm6YkgWOSf2/+deeTb0J23eJMklqMU3VA6xYVw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=hSlc/48VBEWGDyIpnGFrnqZxPOaobgdlDWfQknh2E0q4MIdrJQsyt3BEwNwAvw4m1 NPtOpqReRDNyWuk1fEfc/uQ/7N+haKBXLDDHPtiEznEM0eGr8xA44UNMdrZD5sYdyN PXnvckzmbvfVQrwFBQs2yt9/dEj03/uDKA/EMucc= 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 1MpDNl-1mStwB3eHP-00qg4x; Sat, 29 Jan 2022 10:52:12 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Michael Turquette , Stephen Boyd Subject: [PATCH 3/5] clk: mmp: Declare mux tables as const u32[] Date: Sat, 29 Jan 2022 10:51:56 +0100 Message-Id: <20220129095159.2202366-4-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220129095159.2202366-1-j.neuschaefer@gmx.net> References: <20220129095159.2202366-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:wugnxLreJ8HvuFe6a1KD2/l1RN1QGM7Z/RamLTVSxNzpNpXRmPI xrGnCqK1d+ASM5GpR6rjpAE6Kc7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U5 1isdddEtEPKKHbGz4PgugD+Rr2j2r5TMM/fd2DHT3QuYElZvZ+w2Bfi4CQhdjtChq0nfDQ3pt U+PRcPIzymWGYlHOHCYsHQWg7UARwAnkdQuJ8nxHVW8MBGy08o+eAga1YbW7CP9rWBXwlw2oj 2nGgyY+5IeALdL28GQ/gahop7plgm2Ths1NpVZzYyEqhNReJP2rHYTjeuJ6ognpmEzWZ6nCFq Bpumsh5A8lAb0o= 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 --- 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 Jan 29 09:51:57 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: 12729418 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 E163FC43217 for ; Sat, 29 Jan 2022 09:52:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238525AbiA2JwY (ORCPT ); Sat, 29 Jan 2022 04:52:24 -0500 Received: from mout.gmx.net ([212.227.17.21]:36547 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238457AbiA2JwT (ORCPT ); Sat, 29 Jan 2022 04:52:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643449934; bh=SjobegYeCpUDAve7xiuQBv0BWl07pgDK9eKK4i8RRPs=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Ets050nABkDUfTnVuV2reJhTxXdwnk6WYChZVH3zKncpwK25er0mNIMyEHlMtNkR5 n2RsvMqSTmbhqSO7XwYv3bG+0Ufrm77KtPrsXTORDM2kcpZQILdffpF6M8Fi5XPEhI CDyEO/hvZowgVmFypMbTMrbATNUoob/zYndtptXs= 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 1M7b6b-1nAB6G3Ln3-0080Jw; Sat, 29 Jan 2022 10:52:13 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-clk@vger.kernel.org Cc: 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 4/5] clk: qcom: Declare mux table as const u32[] Date: Sat, 29 Jan 2022 10:51:57 +0100 Message-Id: <20220129095159.2202366-5-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220129095159.2202366-1-j.neuschaefer@gmx.net> References: <20220129095159.2202366-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:uwp4dzzhhwbJM5makTwlwtp2N5eApP48DwAPSe0hk9JLwycThiY 2MUj4FKwb6auuycF27LwU/l/EWpnEH0YXAvmndGMerAOhR42WEJl7QqEvcvPIhXXFT3PPLA 8CosYEPrUcmAZvT28jrijfFhyBbJ2PiJomY9YHIe/vkj00ggn5WwGYiUYcM8jAIA1yLWWYz rXV8n2zEHBY9ACGqMiDPA== X-UI-Out-Filterresults: notjunk:1;V03:K0:iYe1hMHmwFg=:CcsxAEilFaU7hb3BMmW6IU mqxqawEDxV/hnLznDrDtzJE1hI8b8EacwHkIkCXEn93Pw2IqPmuML4LKQg69UVoUlUvvYbyto IYd7pzYDqct/5Ht/QycqKtT1JCSL7OCmNSa/sGTX/6WIMmkoy2klu76FTvId2U2VCNBO7WOux xZswuTV95pirvtFO6iI7vYB36GapOqWiy4FEXLp9u7XXxEvSlTLvfisHoVERrZuATWxsQn9Sz PtLgpkwKyV2V91/+uoUkmfgYLy7qNFrg98IxoncbkFAAon4r7ONVnFrWaozlMq+h7wmkIoKh/ ESaFTmrdOmlz1ee4K0do5iQPt1wULnkTH6Ei041TonFhIwepwuQDHKTSQjZK8eKh8fC+/QseN n8vU7rb0+P3aG3NBWzIqqhjqMrkWCHicdAqisWfMGq3+8VbUKIBNtyJDCpy4yI5YeVFAfRxNf i4KDbBiei1JgCtpEDjL2bkcvMtWgS7G1Vwj0rTbk/C2SEapwRIo/buL/gPtYs/4+HW6wh8WQQ r5jRyhOvM0Py+zYiG5v7+IBsZaLY4B+RSLUywdZAVv7M2yQSMAm0FYgBytF07Nq01szUv3/ga tzJz6vfxCepIc0Qq+jpmnW3YEif1wEz1tMo9hCxww6gRpKk0UclqLI5vmV75gT++LWOXXbduC 0WM/Y1WS8+on2NdqX4EX2DzIdCEjSNJk+nTRLiZXxw5xSOFnL3EN/J4C/2h6IXfMpnYI46CaW 1i60lpilaRXQWsR2n8HOEJPZX2lKrXKVWk9fyZ2PG2NzNci98OZniEZ8dqLzWBD62BeCQKv0z 7iNJQJ93fnfEujTb5EEgJATyE3DepBvCMG5f3Zz7G6g4EI4e8snaRxqz8WIlxbDaoKwKIdJCt B95f7odsXi+0EeTGxnTwM8vmAeU2pnQ1q5o3esXY1sQ0URux6xcI7k8DjTl8re1nzaiWiED/W o877P/6I8nbev0IvaU9kNX0aAfkzQ8Zl304u3BoKhPimCDsOy4gs8/NAKMRMh15JFX2u9AI0A Nd+gkVG/hNl9XEqFjjM5QNi/6VIZfAAniDT2c6MZIyoTn9WrSrQs7WJCenSXMYBJ6c8hI9oqe Q0qCk7RmQfr1/g= 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 --- 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 Jan 29 09:51:58 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: 12729417 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 A20DAC433FE for ; Sat, 29 Jan 2022 09:52:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237480AbiA2JwX (ORCPT ); Sat, 29 Jan 2022 04:52:23 -0500 Received: from mout.gmx.net ([212.227.15.15]:53347 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237502AbiA2JwV (ORCPT ); Sat, 29 Jan 2022 04:52:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643449935; bh=gRoLgReVt9sFMKKgTgP9bxEx0JJNCyYEO1Me2LoeXqw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=C7xHbw6ntN6xluwDa+g4kH8xrQQZpYeq6yLleXEIo9Q9jvAIFx5bCFY5C60avI2Dt cEYZfbzzrPT2XArpBXs4gb7X3S2O6ep8egRmbnuSxPLVeE7vBbt0pBRIB8azvqqsME y5PxRDCVRJGchMlZp5f3/GJP6lAjYHH7mbdcFj9Q= 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 1M2f5Z-1nF6mG2kIB-0048sg; Sat, 29 Jan 2022 10:52:15 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Michael Turquette , Stephen Boyd Subject: [PATCH 5/5] clk: pistachio: Declare mux table as const u32[] Date: Sat, 29 Jan 2022 10:51:58 +0100 Message-Id: <20220129095159.2202366-6-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220129095159.2202366-1-j.neuschaefer@gmx.net> References: <20220129095159.2202366-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:KE34mcs5juQ711y5ONeWmE3pM2pJTHQcjAqXXEo6hqDu3hKtRb8 oWLGrhaqghRtr1ay00lRaJZcxlQXQSChmKqjGBMYweOXYz0FoyaCcjGux6qoOrI8VEQItWY ZsdC122xXAPDo8tVEAU38QSlZ2v8/gCcfphFtFrJH4DMywKO2IzNO6XtpPFEHQhFYpXWgEt G3P6rzIOoqOV29jrlZsFw== X-UI-Out-Filterresults: notjunk:1;V03:K0:cXKG2Akly48=:QciOPHrQgYxI/ETkmFgGn9 sus+9uF/epI5kONu7NoLtMOZOmpX7zFs+gMTa2tXO8k3LIIun3TJAjyRqh+d7PTduaRmhP3Vo s5uv1pgkqGN9qFHECnrJXcuI2CbqtMUp0C6I+jklZ+jhoPY2gfFEwtucpRttDhDwfNojUhPx1 /UYTddRqdLujmObhwHGgJNBrtC4IAEvwY7ZDmT/YeKj5T8pQ5G7LxCInmY2PMG7SjIooH5Hyc xlaWs/DX3IxnTbk/ScyMcEPv/YMSByceloQzzLoyOyk41+6YwiY9rx2+hn3Z7vwje2OT8as/H glnGxY7pxxuyi3QhljcKAeG4438rnij2CwpDM8p7HIYOTPOjgGLfB8A8NTqPQ2vPkhT9bkeoc Taa+EyP9QdSRE/bRrzW05RhI/sFhnHbbxV4vJYZc4sIJWsYidBptmxKwPo40PYAuPcqTZH3AP PJWyPXOutWkgMx+pOsXNrjUqHG+Tfrp910XOd2vzKEqB3nHX6Xma1h+A3TRMlkokuv9ymG2Dt T9L8OFbE4CrHExEGkBxe7NyZpoOLUbDpHAV6IS+IpOj7OMIYPwAXmLK8I+97B+U2n7Bdhk9PH Tbck6jojmVUmeW0Qhq671uvef/czzS4qEGhjg8HsvGrEx+V+p9ujLQk664fUIJ2VtBDNDeuo/ F6UPbaISC+FlxHVe5m4YSd2SYI5UuP5kjiOEQkFKCV27GWxgvl2yn/UomRxvFkV+N9NOmeqNU hLKNgS9dqCOe1aPRd5PTEXwLivSFoG2g/SeVnaHQZQD+4ObhxfnRy8vobAGeLaMDsdL9aeZza rQ1KTnwj5+FyCoGNJvWrbMruDn99PnCDTs+5LZ/pF7reiQG9pYQTspfccsG1WX1243ANHsbXE 6esTqn944NXWWeK0HVMrFmb9PD94MV6t4/gOxEfkmvVkgcmmIhust1AniR0FND+z0cxj409Vo V6cRK8QtJmALWkYgKkngv5druxSlAEIa7caS9zjKYhDekiFwd+b7vJOOJwfz06wkN1Djcz8gB oJNHjkWU/8CjiNi9AfaBvVn7mnLgiKvkSk3Rf68pAisK39vuA4xLBLshbQalw2IFm3OviD5sE 4x08IuhviEb4Sw= 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 --- 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