From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752744AbbBXJjH (ORCPT ); Tue, 24 Feb 2015 04:39:07 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:34447 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750748AbbBXJi7 (ORCPT ); Tue, 24 Feb 2015 04:38:59 -0500 X-AuditID: cbfec7f4-b7f126d000001e9a-b2-54ec4620c065 From: Krzysztof Kozlowski To: Heiko Stuebner , Russell King , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski 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== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, -- 1.9.1