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: 12736053 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 47B13C433F5 for ; Sat, 5 Feb 2022 10:38:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id: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=PEF4t8P/pJzybx76w6k1UMn/ut042sVyK0XSXkXlPC8=; b=H7bVa385xtbMYg vPtqXzQCP0qaL/Jt8CDqNPVwfAh3CmizMVMn91MoRElNrVknjJv2v8lmEuK4/kE+rNIx/P1Ln+QIC nwpb53WM3kdm4fI/vvkGQei67Uc4FRGoJvVBCwzLHO1un8gZW86wiUi2zjQkT6auWi433iuxqL4H2 R4T10gJ1MC1usiAWv07sFWrV/XOtiV1yZ7nNf8EpZVTESZ//zffzYkFW2WN9Gh6LI84WTKT5Li7TW njqv4G70rjpJ6fJ4PV1qp+SDULAZw+eeMkeE/SSNDOof5d0TdY5MawuTbKW4h4MpaaHwm7JMD4COG 8QK/l/1l4Zog9/dXHeoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nGIRY-006Llo-Ka; Sat, 05 Feb 2022 10:37:24 +0000 Received: from mout.gmx.net ([212.227.17.20]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nGIQw-006LX8-T8 for linux-arm-kernel@lists.infradead.org; Sat, 05 Feb 2022 10:36:48 +0000 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:484u0cPlgTTPxmQUrE6UBAsd2xifETbVQ4jDXYSG2AA02TcLy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fvWqsf88C/OxXFv118X0bNGi2JIGC+wSejLM+jN2j DcwpSAvefsBNrOT4HBYfaXAlCDd8nNlkufQ/nV/huDRccM4mhUV2f/ZlZPGxChuS6maB0+EtZ xGik6iahSTO39XvRSqoU6AYg46I86rf+T+QcoaObX/JAcVCGXMok9Mr3k9dbBU3gpQPszpIUE IuoIAXTNSrG5U91PePH+PU4F7Gu2EG5W5MzKhSmMG91SJR+nhGzCGtfkdfk3DcK7+Tu7pfWuy vbCCcpDyU9Nr6Q= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220205_023647_270228_46D33E06 X-CRM114-Status: GOOD ( 10.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 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"};