From patchwork Tue Feb 24 09:38:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5870941 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A30C3BF440 for ; Tue, 24 Feb 2015 09:39:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CEB9320652 for ; Tue, 24 Feb 2015 09:39:38 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ED4F32064D for ; Tue, 24 Feb 2015 09:39:37 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YQBxo-0004f6-7C; Tue, 24 Feb 2015 09:39:36 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YQBxZ-0004X1-G8; Tue, 24 Feb 2015 09:39:22 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NK900IUOSBMTN50@mailout2.w1.samsung.com>; Tue, 24 Feb 2015 09:42:58 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-b2-54ec4620c065 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 06.24.07834.0264CE45; Tue, 24 Feb 2015 09:36:32 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NK900FDOS4UWB30@eusync4.samsung.com>; Tue, 24 Feb 2015 09:38:57 +0000 (GMT) From: Krzysztof Kozlowski To: Heiko Stuebner , Russell King , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: rockchip: Constify struct regmap_config and staticize local function Date: Tue, 24 Feb 2015 10:38:47 +0100 Message-id: <1424770727-5396-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCJMWRmVeSWpSXmKPExsVy+t/xa7oKbm9CDLb85bT4/+g1q8XrF4YW mx5fY7W4vGsOm8WnB/+ZLW5f5nVg82hp7mHz2Lyk3qNvyypGj+3X5jF7fN4kF8AaxWWTkpqT WZZapG+XwJVxoy+oYBNnxcY9cg2MH9m7GDk5JARMJH5t7WOEsMUkLtxbz9bFyMUhJLCUUeLY p4MsEE4fk8SGu/vAqtgEjCU2L18CViUisJ1R4mHXH1aQBLOAocTPd3+AxnJwCAvESJz6KgQS ZhFQlWh50MUCYvMKuElcejAVapucxMljk1knMHIvYGRYxSiaWppcUJyUnmuoV5yYW1yal66X nJ+7iRESEl92MC4+ZnWIUYCDUYmH90HZqxAh1sSy4srcQ4wSHMxKIrwLbN+ECPGmJFZWpRbl xxeV5qQWH2Jk4uCUamBsdv34svRBJFfmG4kzqvfO9h7R/1itsXRPgPM2I/uoDzHrShyDPJaz BRgtjlyc9PW40MVA3UXx5RKMLcLPJHzPHWxUaf/xJaKsvd9m3SmBok1xaeV6G1S2qPBvFq1u P6D+ZrFH2XSv/XyT/0Vfb88+Ozlw5WNB32WrRP7quL3TcbqofkCOYbESS3FGoqEWc1FxIgAQ /hnY5wEAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150224_013921_691291_3FDBC33F X-CRM114-Status: UNSURE ( 8.99 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.0 (-----) Cc: Krzysztof Kozlowski X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The regmap_config struct may be const because it is not modified by the driver and regmap_init() accepts pointer to const. Make function rockchip_get_core_reset() static because it is not used outside of the platsmp.c file. Signed-off-by: Krzysztof Kozlowski --- arch/arm/mach-rockchip/platsmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-rockchip/platsmp.c b/arch/arm/mach-rockchip/platsmp.c index f26fcdca2445..5b4ca3c3c879 100644 --- a/arch/arm/mach-rockchip/platsmp.c +++ b/arch/arm/mach-rockchip/platsmp.c @@ -55,7 +55,7 @@ static int pmu_power_domain_is_on(int pd) return !(val & BIT(pd)); } -struct reset_control *rockchip_get_core_reset(int cpu) +static struct reset_control *rockchip_get_core_reset(int cpu) { struct device *dev = get_cpu_device(cpu); struct device_node *np; @@ -201,7 +201,7 @@ static int __init rockchip_smp_prepare_sram(struct device_node *node) return 0; } -static struct regmap_config rockchip_pmu_regmap_config = { +static const struct regmap_config rockchip_pmu_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4,