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: 12736054 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 4DF72C433F5 for ; Sat, 5 Feb 2022 10:39:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vl4cKWlYh1UrrSxe0RzBLYwrIf+oxQRo9GJ7DSVjrZ0=; b=2LJhLbYXxhNKuF LmjVDRG64mc6f5k7PTXSKcU4y9DGTJR/EXZruX4C69/3ib+f5XbTXNNBUtahcqn4jbXzeSCX99z45 4b/11vR5VoiiVrnljuhPUfZotOaG+1Vv16tkqoq+eEpC1X47i9tlBC6ojXAs54rAh0zrvuwIj0W9D HyWwKaUiALx8cY4+qVVM6ur9/GKYAaFLJ+68GdiIO+DG9+3OUpznglARvlUx6ZvS1hhIyX1gDyNEb zk6rRtRRN5VSuqD8kMPJ7PeM6vQsLR071wfrJ4JxvFO/4j+KYRt0kwLe8GnBn3rz3qbHVDdKCTGxC dmoJguIkKRphmi9iVs1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nGIRq-006LtO-SZ; Sat, 05 Feb 2022 10:37:43 +0000 Received: from mout.gmx.net ([212.227.15.18]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nGIQy-006LYC-Jb for linux-arm-kernel@lists.infradead.org; Sat, 05 Feb 2022 10:36:50 +0000 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/LqufAv9n4PU7HJES8KlhrBCuH394ssecNb0v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h1W73PbP3/Yn6QWW3JkkhwwYLyFVVElacXnuHL/iew J9bKsf44Zdi/A85t4QGHfp9t0MXP/WCqt1Zhf6nzvEVlIBWIuhJ1w+/GYWfiGXqEzib+SRc4T BdEpmLNgZc0/jFFfpztAq87w0u1R1ZFJyNnyV81Xl4joRi0lxsKQKEHOwCwb8A58SnMmMTzNq Bf9zXdy2R1TTR+hQfeC/Uo2zCeUy9YqsgIQvnkb6IBBgBRoboV7RacJh07skOJ0fCO06kZTj1 zq6CGefHXa08r0= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220205_023648_969248_24DAB9AE X-CRM114-Status: GOOD ( 11.45 ) 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 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