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: 12736038 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 5A425C433F5 for ; Sat, 5 Feb 2022 10:38:13 +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=/OdbH3ZqE6GR8uV//JZrXyzBOTdVdHtpDDA7ZVjq3vY=; b=QMkv9Ejfgterae YHTfO2Ak1r4Ra/BAMwO5oHr0HuIPq5ocHuQ6OUX6aMY9GD6Mv9nqPWYfx5zFE/BPm4EzgMx/GWTpN Mx4HBm+W0Jra36so9AW01qJfpxKpy16uHItB9JvD5p75AWUOkIPj6fXec61nxvVxbOZFPgvAgB2Eb 7xNfUx9sLAGSfYmn/DLSz1slhKfAcvv9q+iZiMUwZbZ7VTAo67r8IdjnlVg2jWjhzIS/+G2DXDlOv pzVJmIT8spw1turHDOeVeOCdKYzVJ2MUHSt7+nnXAKPke1ZjSvbENYFeQ5Nn48IEJNOycNb5R9jpf 4AVknLYIh/BP1Z7XQLQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nGIRA-006LcJ-Ed; Sat, 05 Feb 2022 10:37:00 +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 1nGIQv-006LWY-13 for linux-arm-kernel@lists.infradead.org; Sat, 05 Feb 2022 10:36:46 +0000 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:pGRh6WQIF713X8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deEMiZktP5vBBXpMra5ZOyxhTIREAp+5yx1fThRMbvQ6cuh/v53D44fIlYZf13gXNVoIfVfh aCGgpPEIzYJa2NFofiR/IQl53xWazPxQ7EXA1jDksXLligB9gmxFypQ/4/iUno12DXdfJi7Xd y0keOVcd9PYy/tFPm3Eg8T4RxLBUfTHO14HA62QxJ42VmYdtb0Hf4Yk5tuYQqAAQhflWwY+Fn yz+X4i+80dk0qGtsUJHgd1rE8L5ggnReKDO3nM/gZuCz2zqg5xtIGczuS5X6GAOSKQiIk3x/+ mj5cJER/qToRhI= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220205_023645_399654_D8E8CEA0 X-CRM114-Status: GOOD ( 10.87 ) 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 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;