]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mfd: max77620: Constify resources tables
authorAxel Lin <axel.lin@ingics.com>
Sun, 5 Jun 2016 08:28:17 +0000 (16:28 +0800)
committerLee Jones <lee.jones@linaro.org>
Wed, 29 Jun 2016 09:14:32 +0000 (10:14 +0100)
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>
drivers/mfd/max77620.c

index 84a830598fc9f0c8b8937072833e2e1db326f928..d4688f3cfe02a0e6e77435f5414e8c1a6dadc050 100644 (file)
 #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),
 };