diff options
author | Axel Lin <axel.lin@ingics.com> | 2016-06-05 10:28:17 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2016-06-29 11:14:32 +0200 |
commit | 2be59755e66d34f46001ca19224ab4cefb212c51 (patch) | |
tree | bc0819ff899af6ca50a5356474e0d6e3c24c2a22 /drivers/mfd | |
parent | mfd: si476x-i2c: Fix spelling mistake "comptible" -> "compatible" (diff) | |
download | linux-2be59755e66d34f46001ca19224ab4cefb212c51.tar.xz linux-2be59755e66d34f46001ca19224ab4cefb212c51.zip |
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>
Diffstat (limited to 'drivers/mfd')
-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 @@ #include <linux/regmap.h> #include <linux/slab.h> -static struct resource gpio_resources[] = { +static const struct resource gpio_resources[] = { DEFINE_RES_IRQ(MAX77620_IRQ_TOP_GPIO), }; -static struct resource power_resources[] = { +static const struct resource power_resources[] = { DEFINE_RES_IRQ(MAX77620_IRQ_LBT_MBATLOW), }; -static struct resource rtc_resources[] = { +static const struct resource rtc_resources[] = { DEFINE_RES_IRQ(MAX77620_IRQ_TOP_RTC), }; -static struct resource thermal_resources[] = { +static const struct resource thermal_resources[] = { DEFINE_RES_IRQ(MAX77620_IRQ_LBT_TJALRM1), DEFINE_RES_IRQ(MAX77620_IRQ_LBT_TJALRM2), }; |