diff options
author | Axel Lin <axel.lin@ingics.com> | 2016-06-05 04:28:17 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2016-06-29 05:14:32 -0400 |
commit | 2be59755e66d34f46001ca19224ab4cefb212c51 (patch) | |
tree | bc0819ff899af6ca50a5356474e0d6e3c24c2a22 | |
parent | 521d93579f863b04fa5eb492f4b14b220d44dd19 (diff) |
mfd: max77620: Constify resources tables
These tables are never modified, so declare them as const.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | drivers/mfd/max77620.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mfd/max77620.c b/drivers/mfd/max77620.c index 84a830598fc9..d4688f3cfe02 100644 --- a/drivers/mfd/max77620.c +++ b/drivers/mfd/max77620.c | |||
@@ -37,19 +37,19 @@ | |||
37 | #include <linux/regmap.h> | 37 | #include <linux/regmap.h> |
38 | #include <linux/slab.h> | 38 | #include <linux/slab.h> |
39 | 39 | ||
40 | static struct resource gpio_resources[] = { | 40 | static const struct resource gpio_resources[] = { |
41 | DEFINE_RES_IRQ(MAX77620_IRQ_TOP_GPIO), | 41 | DEFINE_RES_IRQ(MAX77620_IRQ_TOP_GPIO), |
42 | }; | 42 | }; |
43 | 43 | ||
44 | static struct resource power_resources[] = { | 44 | static const struct resource power_resources[] = { |
45 | DEFINE_RES_IRQ(MAX77620_IRQ_LBT_MBATLOW), | 45 | DEFINE_RES_IRQ(MAX77620_IRQ_LBT_MBATLOW), |
46 | }; | 46 | }; |
47 | 47 | ||
48 | static struct resource rtc_resources[] = { | 48 | static const struct resource rtc_resources[] = { |
49 | DEFINE_RES_IRQ(MAX77620_IRQ_TOP_RTC), | 49 | DEFINE_RES_IRQ(MAX77620_IRQ_TOP_RTC), |
50 | }; | 50 | }; |
51 | 51 | ||
52 | static struct resource thermal_resources[] = { | 52 | static const struct resource thermal_resources[] = { |
53 | DEFINE_RES_IRQ(MAX77620_IRQ_LBT_TJALRM1), | 53 | DEFINE_RES_IRQ(MAX77620_IRQ_LBT_TJALRM1), |
54 | DEFINE_RES_IRQ(MAX77620_IRQ_LBT_TJALRM2), | 54 | DEFINE_RES_IRQ(MAX77620_IRQ_LBT_TJALRM2), |
55 | }; | 55 | }; |