diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2016-12-10 08:47:32 -0500 |
---|---|---|
committer | Krzysztof Kozlowski <krzk@kernel.org> | 2016-12-29 08:27:40 -0500 |
commit | b4765037fc8c392027e604cf05771f0ac2790303 (patch) | |
tree | e33a6ca5738688219c5de3ad05fa60a24ab55b4f | |
parent | 6bfebd863b2b831dc5b098fd6e04732f8dc22935 (diff) |
ARM: EXYNOS: Constify list of retention registers
The list of retention registers (release_ret_regs field of struct
exynos_pm_data and arrays with values) are not modified and can be made
const to improve the const safeness.
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
-rw-r--r-- | arch/arm/mach-exynos/suspend.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-exynos/suspend.c b/arch/arm/mach-exynos/suspend.c index 06332f626565..be29f06d04f1 100644 --- a/arch/arm/mach-exynos/suspend.c +++ b/arch/arm/mach-exynos/suspend.c | |||
@@ -57,7 +57,7 @@ struct exynos_wkup_irq { | |||
57 | struct exynos_pm_data { | 57 | struct exynos_pm_data { |
58 | const struct exynos_wkup_irq *wkup_irq; | 58 | const struct exynos_wkup_irq *wkup_irq; |
59 | unsigned int wake_disable_mask; | 59 | unsigned int wake_disable_mask; |
60 | unsigned int *release_ret_regs; | 60 | const unsigned int *release_ret_regs; |
61 | 61 | ||
62 | void (*pm_prepare)(void); | 62 | void (*pm_prepare)(void); |
63 | void (*pm_resume_prepare)(void); | 63 | void (*pm_resume_prepare)(void); |
@@ -95,7 +95,7 @@ static const struct exynos_wkup_irq exynos5250_wkup_irq[] = { | |||
95 | { /* sentinel */ }, | 95 | { /* sentinel */ }, |
96 | }; | 96 | }; |
97 | 97 | ||
98 | static unsigned int exynos_release_ret_regs[] = { | 98 | static const unsigned int exynos_release_ret_regs[] = { |
99 | S5P_PAD_RET_MAUDIO_OPTION, | 99 | S5P_PAD_RET_MAUDIO_OPTION, |
100 | S5P_PAD_RET_GPIO_OPTION, | 100 | S5P_PAD_RET_GPIO_OPTION, |
101 | S5P_PAD_RET_UART_OPTION, | 101 | S5P_PAD_RET_UART_OPTION, |
@@ -106,7 +106,7 @@ static unsigned int exynos_release_ret_regs[] = { | |||
106 | REG_TABLE_END, | 106 | REG_TABLE_END, |
107 | }; | 107 | }; |
108 | 108 | ||
109 | static unsigned int exynos3250_release_ret_regs[] = { | 109 | static const unsigned int exynos3250_release_ret_regs[] = { |
110 | S5P_PAD_RET_MAUDIO_OPTION, | 110 | S5P_PAD_RET_MAUDIO_OPTION, |
111 | S5P_PAD_RET_GPIO_OPTION, | 111 | S5P_PAD_RET_GPIO_OPTION, |
112 | S5P_PAD_RET_UART_OPTION, | 112 | S5P_PAD_RET_UART_OPTION, |
@@ -119,7 +119,7 @@ static unsigned int exynos3250_release_ret_regs[] = { | |||
119 | REG_TABLE_END, | 119 | REG_TABLE_END, |
120 | }; | 120 | }; |
121 | 121 | ||
122 | static unsigned int exynos5420_release_ret_regs[] = { | 122 | static const unsigned int exynos5420_release_ret_regs[] = { |
123 | EXYNOS_PAD_RET_DRAM_OPTION, | 123 | EXYNOS_PAD_RET_DRAM_OPTION, |
124 | EXYNOS_PAD_RET_MAUDIO_OPTION, | 124 | EXYNOS_PAD_RET_MAUDIO_OPTION, |
125 | EXYNOS_PAD_RET_JTAG_OPTION, | 125 | EXYNOS_PAD_RET_JTAG_OPTION, |