From patchwork Sat Feb 5 10:36:06 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: 12736037 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 9788DC433F5 for ; Sat, 5 Feb 2022 10:38:05 +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: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:In-Reply-To:References: List-Owner; bh=5NC6HbXQCRmBdmWsygsHwYW/lzpa/zqYuX1QFDaqmJI=; b=iaL8XOhNBDkwu3 Q1m06FNvrCZeQdncdTZ3rsvn14ZLOhXaTG52MmVC9QlCdRtjEROScHU6oTN/dNqAgLjPF0BXR/aTg RlcZfpcikUyJMaLYogvc84gmLp6jKONxrFN8mUIAvby3xue5mfoNiCtJ22Nx+jshYaU4l8QfN3Ie9 JdC9Pwmf4Puf0ZQ8NcJUr9NFnVd2istmDJrU3QrGtOb6VBH94BxP5BvwYolUpCcEZp9kXnYlxEaDj GdwjAGO1/dv4ifL5KgZLcrLily6dzlK9BQWCiyXZ0iPDr+ojymOOLqkJ6SMFIGFjNHWoUWA82+bJY YO4utIGmtqSiXgq8tlLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nGIQp-006LV8-77; Sat, 05 Feb 2022 10:36:39 +0000 Received: from mout.gmx.net ([212.227.15.15]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nGIQk-006LUY-GJ for linux-arm-kernel@lists.infradead.org; Sat, 05 Feb 2022 10:36:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644057392; bh=9H7cICTDVgmHRDhmL0NozmHU5f8YJKtTFxCCe/KGh40=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=NVB+fEecn9aD2SjxQUwmZcZP+TKWJOxn+fRuJbLTYMn4Bbrx99P/18MAz0Pb5GmUD E9k5bu5P8tmmrW5FQ7p+xzz4QgqC07h53OuVs3lYa6q4WsFpiXUnDwT1Q3Qqu5zJjm Rs1hRclJX4VDZ34U9yQSZ7qRNusrGXK14xldoh1o= 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 1M42jK-1nGIQi08WW-00035X; Sat, 05 Feb 2022 11:36:32 +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?= Subject: [PATCH v2 0/7] clk: Declare mux tables as const u32[] Date: Sat, 5 Feb 2022 11:36:06 +0100 Message-Id: <20220205103613.1216218-1-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:/h8Kx3Dp4vLgS/DLX4PZl6iFN/6UxoPSJrqjjZuVVAbXZ1DfIzT COIlkuzULvS4se7nqwcHAy4umtKBjWe+edlH7oREVi+hn4q2YU7LmZOJB+ZUD9c43c9qD5A rQ/aCxpAVqCDdiOw4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9Z 6n46DOfUhj5jbPSRJykr2Zf9+ZevY1/hM4IunA/96xn+hRLXst8WGiud4m+BYfk71aPl3mSTR BTIg0eWEp4yd64dUL/BKnakdfTly/v0814YzPrbnhWWW1boGfhhaaRmAmwk1pTkP9ybH+uXBa 8ufIN/iHZwf3a4= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220205_023634_899279_662B9146 X-CRM114-Status: GOOD ( 10.12 ) 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 I noticed that the 'table' parameter to clk_register_mux_table is never used for modifying the table elements, and so it can be declared const. In version 2 I'm addressing two warnings in the clk-lpc18xx-cgu driver that I previously missed. Jonathan Neuschäfer (7): clk: nxp: Remove unused variable clk: nxp: Declare mux table parameter as const u32 * clk: mux: Declare u32 *table parameter as const clk: hisilicon: Remove unnecessary cast of mux table to u32 * clk: mmp: Declare mux tables as const u32[] clk: qcom: Declare mux table as const u32[] clk: pistachio: Declare mux table as const u32[] drivers/clk/clk-mux.c | 10 +++++----- drivers/clk/hisilicon/clk.c | 2 +- drivers/clk/mmp/clk-of-mmp2.c | 4 ++-- drivers/clk/nxp/clk-lpc18xx-cgu.c | 5 ++--- drivers/clk/pistachio/clk-pistachio.c | 2 +- drivers/clk/qcom/kpss-xcc.c | 2 +- include/linux/clk-provider.h | 12 ++++++------ 7 files changed, 18 insertions(+), 19 deletions(-) --- 2.34.1