Commit bd76d738 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Heiko Stuebner

ARM: rockchip: Constify struct regmap_config and staticize local function

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: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent c517d838
...@@ -55,7 +55,7 @@ static int pmu_power_domain_is_on(int pd) ...@@ -55,7 +55,7 @@ static int pmu_power_domain_is_on(int pd)
return !(val & BIT(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 *dev = get_cpu_device(cpu);
struct device_node *np; struct device_node *np;
...@@ -201,7 +201,7 @@ static int __init rockchip_smp_prepare_sram(struct device_node *node) ...@@ -201,7 +201,7 @@ static int __init rockchip_smp_prepare_sram(struct device_node *node)
return 0; return 0;
} }
static struct regmap_config rockchip_pmu_regmap_config = { static const struct regmap_config rockchip_pmu_regmap_config = {
.reg_bits = 32, .reg_bits = 32,
.val_bits = 32, .val_bits = 32,
.reg_stride = 4, .reg_stride = 4,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment