]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: rockchip: Constify struct regmap_config and staticize local function
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Sun, 1 Mar 2015 23:12:03 +0000 (00:12 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 11 Mar 2015 21:40:56 +0000 (22:40 +0100)
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 <k.kozlowski@samsung.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/mach-rockchip/platsmp.c

index f26fcdca2445e96e5cbac6731791485e9f904e7e..5b4ca3c3c8797d2560c4addaad6773b974ebb2d0 100644 (file)
@@ -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,