soc: samsung: pmu: Constify arrays with PMU data
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Wed, 6 Jul 2016 07:03:46 +0000 (09:03 +0200)
committerKrzysztof Kozlowski <k.kozlowski@samsung.com>
Wed, 6 Jul 2016 08:35:45 +0000 (10:35 +0200)
Arrays storing values for Power Management Unit for given sleep mode can
be made const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
drivers/soc/samsung/exynos3250-pmu.c
drivers/soc/samsung/exynos5420-pmu.c

index 20b3ab8aa790c1483b7ce5937b855db35d4d2008..af2f54e14b83681ac8e153da3fbd29aea61f9200 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "exynos-pmu.h"
 
-static struct exynos_pmu_conf exynos3250_pmu_config[] = {
+static const struct exynos_pmu_conf exynos3250_pmu_config[] = {
        /* { .offset = offset, .val = { AFTR, W-AFTR, SLEEP } */
        { EXYNOS3_ARM_CORE0_SYS_PWR_REG,                { 0x0, 0x0, 0x2} },
        { EXYNOS3_DIS_IRQ_ARM_CORE0_LOCAL_SYS_PWR_REG,  { 0x0, 0x0, 0x0} },
index b962fb6a5d22b42072ba294a8501dd59de9f9734..3f2c64180ef8262e5b631681c2523c9bffda9b2a 100644 (file)
@@ -17,7 +17,7 @@
 
 #include "exynos-pmu.h"
 
-static struct exynos_pmu_conf exynos5420_pmu_config[] = {
+static const struct exynos_pmu_conf exynos5420_pmu_config[] = {
        /* { .offset = offset, .val = { AFTR, LPA, SLEEP } */
        { EXYNOS5_ARM_CORE0_SYS_PWR_REG,                { 0x0, 0x0, 0x0} },
        { EXYNOS5_DIS_IRQ_ARM_CORE0_LOCAL_SYS_PWR_REG,  { 0x0, 0x0, 0x0} },
This page took 0.0257 seconds and 5 git commands to generate.