diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-11-18 08:33:06 -0500 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-01-06 04:13:29 -0500 |
commit | 5ac98553afe41ffb5513fa8aac6df699a70231a3 (patch) | |
tree | 98ce7a973aa86184d1c4dc17a758dcd1534fc1bd | |
parent | 2977dc92e437f888974b2e9fe37c95dd29e2b62a (diff) |
mfd: Constify struct mfd_cell where possible
As of commit 03e361b25ee8dfb1fd9b890072c23c4aae01c6c7 ("mfd: Stop setting
refcounting pointers in original mfd_cell arrays"), the "cell" parameter of
mfd_add_devices() is "const" again. Hence make all cell data passed to
mfd_add_devices() const where possible.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | drivers/mfd/ab8500-core.c | 14 | ||||
-rw-r--r-- | drivers/mfd/arizona-core.c | 8 | ||||
-rw-r--r-- | drivers/mfd/as3722.c | 2 | ||||
-rw-r--r-- | drivers/mfd/asic3.c | 4 | ||||
-rw-r--r-- | drivers/mfd/cros_ec.c | 2 | ||||
-rw-r--r-- | drivers/mfd/db8500-prcmu.c | 4 | ||||
-rw-r--r-- | drivers/mfd/htc-pasic3.c | 2 | ||||
-rw-r--r-- | drivers/mfd/jz4740-adc.c | 2 | ||||
-rw-r--r-- | drivers/mfd/lp8788.c | 2 | ||||
-rw-r--r-- | drivers/mfd/rc5t583.c | 2 | ||||
-rw-r--r-- | drivers/mfd/rdc321x-southbridge.c | 2 | ||||
-rw-r--r-- | drivers/mfd/retu-mfd.c | 6 | ||||
-rw-r--r-- | drivers/mfd/sec-core.c | 8 | ||||
-rw-r--r-- | drivers/mfd/timberdale.c | 12 | ||||
-rw-r--r-- | drivers/mfd/viperboard.c | 2 | ||||
-rw-r--r-- | drivers/mfd/vx855.c | 2 |
16 files changed, 37 insertions, 37 deletions
diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c index b6c2cdc76091..6788064ed899 100644 --- a/drivers/mfd/ab8500-core.c +++ b/drivers/mfd/ab8500-core.c | |||
@@ -1017,7 +1017,7 @@ static struct resource ab8500_temp_resources[] = { | |||
1017 | }, | 1017 | }, |
1018 | }; | 1018 | }; |
1019 | 1019 | ||
1020 | static struct mfd_cell ab8500_bm_devs[] = { | 1020 | static const struct mfd_cell ab8500_bm_devs[] = { |
1021 | { | 1021 | { |
1022 | .name = "ab8500-charger", | 1022 | .name = "ab8500-charger", |
1023 | .of_compatible = "stericsson,ab8500-charger", | 1023 | .of_compatible = "stericsson,ab8500-charger", |
@@ -1052,7 +1052,7 @@ static struct mfd_cell ab8500_bm_devs[] = { | |||
1052 | }, | 1052 | }, |
1053 | }; | 1053 | }; |
1054 | 1054 | ||
1055 | static struct mfd_cell ab8500_devs[] = { | 1055 | static const struct mfd_cell ab8500_devs[] = { |
1056 | #ifdef CONFIG_DEBUG_FS | 1056 | #ifdef CONFIG_DEBUG_FS |
1057 | { | 1057 | { |
1058 | .name = "ab8500-debug", | 1058 | .name = "ab8500-debug", |
@@ -1143,7 +1143,7 @@ static struct mfd_cell ab8500_devs[] = { | |||
1143 | }, | 1143 | }, |
1144 | }; | 1144 | }; |
1145 | 1145 | ||
1146 | static struct mfd_cell ab9540_devs[] = { | 1146 | static const struct mfd_cell ab9540_devs[] = { |
1147 | #ifdef CONFIG_DEBUG_FS | 1147 | #ifdef CONFIG_DEBUG_FS |
1148 | { | 1148 | { |
1149 | .name = "ab8500-debug", | 1149 | .name = "ab8500-debug", |
@@ -1214,7 +1214,7 @@ static struct mfd_cell ab9540_devs[] = { | |||
1214 | }; | 1214 | }; |
1215 | 1215 | ||
1216 | /* Device list for ab8505 */ | 1216 | /* Device list for ab8505 */ |
1217 | static struct mfd_cell ab8505_devs[] = { | 1217 | static const struct mfd_cell ab8505_devs[] = { |
1218 | #ifdef CONFIG_DEBUG_FS | 1218 | #ifdef CONFIG_DEBUG_FS |
1219 | { | 1219 | { |
1220 | .name = "ab8500-debug", | 1220 | .name = "ab8500-debug", |
@@ -1275,7 +1275,7 @@ static struct mfd_cell ab8505_devs[] = { | |||
1275 | }, | 1275 | }, |
1276 | }; | 1276 | }; |
1277 | 1277 | ||
1278 | static struct mfd_cell ab8540_devs[] = { | 1278 | static const struct mfd_cell ab8540_devs[] = { |
1279 | #ifdef CONFIG_DEBUG_FS | 1279 | #ifdef CONFIG_DEBUG_FS |
1280 | { | 1280 | { |
1281 | .name = "ab8500-debug", | 1281 | .name = "ab8500-debug", |
@@ -1339,7 +1339,7 @@ static struct mfd_cell ab8540_devs[] = { | |||
1339 | }, | 1339 | }, |
1340 | }; | 1340 | }; |
1341 | 1341 | ||
1342 | static struct mfd_cell ab8540_cut1_devs[] = { | 1342 | static const struct mfd_cell ab8540_cut1_devs[] = { |
1343 | { | 1343 | { |
1344 | .name = "ab8500-rtc", | 1344 | .name = "ab8500-rtc", |
1345 | .of_compatible = "stericsson,ab8500-rtc", | 1345 | .of_compatible = "stericsson,ab8500-rtc", |
@@ -1348,7 +1348,7 @@ static struct mfd_cell ab8540_cut1_devs[] = { | |||
1348 | }, | 1348 | }, |
1349 | }; | 1349 | }; |
1350 | 1350 | ||
1351 | static struct mfd_cell ab8540_cut2_devs[] = { | 1351 | static const struct mfd_cell ab8540_cut2_devs[] = { |
1352 | { | 1352 | { |
1353 | .name = "ab8540-rtc", | 1353 | .name = "ab8540-rtc", |
1354 | .of_compatible = "stericsson,ab8540-rtc", | 1354 | .of_compatible = "stericsson,ab8540-rtc", |
diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c index 75e180ceecf3..a45aab9f6bb1 100644 --- a/drivers/mfd/arizona-core.c +++ b/drivers/mfd/arizona-core.c | |||
@@ -565,7 +565,7 @@ static inline int arizona_of_get_core_pdata(struct arizona *arizona) | |||
565 | } | 565 | } |
566 | #endif | 566 | #endif |
567 | 567 | ||
568 | static struct mfd_cell early_devs[] = { | 568 | static const struct mfd_cell early_devs[] = { |
569 | { .name = "arizona-ldo1" }, | 569 | { .name = "arizona-ldo1" }, |
570 | }; | 570 | }; |
571 | 571 | ||
@@ -577,7 +577,7 @@ static const char *wm5102_supplies[] = { | |||
577 | "SPKVDDR", | 577 | "SPKVDDR", |
578 | }; | 578 | }; |
579 | 579 | ||
580 | static struct mfd_cell wm5102_devs[] = { | 580 | static const struct mfd_cell wm5102_devs[] = { |
581 | { .name = "arizona-micsupp" }, | 581 | { .name = "arizona-micsupp" }, |
582 | { .name = "arizona-extcon" }, | 582 | { .name = "arizona-extcon" }, |
583 | { .name = "arizona-gpio" }, | 583 | { .name = "arizona-gpio" }, |
@@ -590,7 +590,7 @@ static struct mfd_cell wm5102_devs[] = { | |||
590 | }, | 590 | }, |
591 | }; | 591 | }; |
592 | 592 | ||
593 | static struct mfd_cell wm5110_devs[] = { | 593 | static const struct mfd_cell wm5110_devs[] = { |
594 | { .name = "arizona-micsupp" }, | 594 | { .name = "arizona-micsupp" }, |
595 | { .name = "arizona-extcon" }, | 595 | { .name = "arizona-extcon" }, |
596 | { .name = "arizona-gpio" }, | 596 | { .name = "arizona-gpio" }, |
@@ -609,7 +609,7 @@ static const char *wm8997_supplies[] = { | |||
609 | "SPKVDD", | 609 | "SPKVDD", |
610 | }; | 610 | }; |
611 | 611 | ||
612 | static struct mfd_cell wm8997_devs[] = { | 612 | static const struct mfd_cell wm8997_devs[] = { |
613 | { .name = "arizona-micsupp" }, | 613 | { .name = "arizona-micsupp" }, |
614 | { .name = "arizona-extcon" }, | 614 | { .name = "arizona-extcon" }, |
615 | { .name = "arizona-gpio" }, | 615 | { .name = "arizona-gpio" }, |
diff --git a/drivers/mfd/as3722.c b/drivers/mfd/as3722.c index f161f2e00df7..2d9b728a19f8 100644 --- a/drivers/mfd/as3722.c +++ b/drivers/mfd/as3722.c | |||
@@ -54,7 +54,7 @@ static const struct resource as3722_adc_resource[] = { | |||
54 | }, | 54 | }, |
55 | }; | 55 | }; |
56 | 56 | ||
57 | static struct mfd_cell as3722_devs[] = { | 57 | static const struct mfd_cell as3722_devs[] = { |
58 | { | 58 | { |
59 | .name = "as3722-pinctrl", | 59 | .name = "as3722-pinctrl", |
60 | }, | 60 | }, |
diff --git a/drivers/mfd/asic3.c b/drivers/mfd/asic3.c index fa22154c84e4..9f6294f2a070 100644 --- a/drivers/mfd/asic3.c +++ b/drivers/mfd/asic3.c | |||
@@ -695,7 +695,7 @@ static int ds1wm_disable(struct platform_device *pdev) | |||
695 | return 0; | 695 | return 0; |
696 | } | 696 | } |
697 | 697 | ||
698 | static struct mfd_cell asic3_cell_ds1wm = { | 698 | static const struct mfd_cell asic3_cell_ds1wm = { |
699 | .name = "ds1wm", | 699 | .name = "ds1wm", |
700 | .enable = ds1wm_enable, | 700 | .enable = ds1wm_enable, |
701 | .disable = ds1wm_disable, | 701 | .disable = ds1wm_disable, |
@@ -797,7 +797,7 @@ static int asic3_mmc_disable(struct platform_device *pdev) | |||
797 | return 0; | 797 | return 0; |
798 | } | 798 | } |
799 | 799 | ||
800 | static struct mfd_cell asic3_cell_mmc = { | 800 | static const struct mfd_cell asic3_cell_mmc = { |
801 | .name = "tmio-mmc", | 801 | .name = "tmio-mmc", |
802 | .enable = asic3_mmc_enable, | 802 | .enable = asic3_mmc_enable, |
803 | .disable = asic3_mmc_disable, | 803 | .disable = asic3_mmc_disable, |
diff --git a/drivers/mfd/cros_ec.c b/drivers/mfd/cros_ec.c index 1f36885d674b..783fe2e73e1e 100644 --- a/drivers/mfd/cros_ec.c +++ b/drivers/mfd/cros_ec.c | |||
@@ -84,7 +84,7 @@ static irqreturn_t ec_irq_thread(int irq, void *data) | |||
84 | return IRQ_HANDLED; | 84 | return IRQ_HANDLED; |
85 | } | 85 | } |
86 | 86 | ||
87 | static struct mfd_cell cros_devs[] = { | 87 | static const struct mfd_cell cros_devs[] = { |
88 | { | 88 | { |
89 | .name = "cros-ec-keyb", | 89 | .name = "cros-ec-keyb", |
90 | .id = 1, | 90 | .id = 1, |
diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c index b9ce60c301de..e43e6e821117 100644 --- a/drivers/mfd/db8500-prcmu.c +++ b/drivers/mfd/db8500-prcmu.c | |||
@@ -3070,7 +3070,7 @@ static struct db8500_thsens_platform_data db8500_thsens_data = { | |||
3070 | .num_trips = 4, | 3070 | .num_trips = 4, |
3071 | }; | 3071 | }; |
3072 | 3072 | ||
3073 | static struct mfd_cell common_prcmu_devs[] = { | 3073 | static const struct mfd_cell common_prcmu_devs[] = { |
3074 | { | 3074 | { |
3075 | .name = "ux500_wdt", | 3075 | .name = "ux500_wdt", |
3076 | .platform_data = &db8500_wdt_pdata, | 3076 | .platform_data = &db8500_wdt_pdata, |
@@ -3079,7 +3079,7 @@ static struct mfd_cell common_prcmu_devs[] = { | |||
3079 | }, | 3079 | }, |
3080 | }; | 3080 | }; |
3081 | 3081 | ||
3082 | static struct mfd_cell db8500_prcmu_devs[] = { | 3082 | static const struct mfd_cell db8500_prcmu_devs[] = { |
3083 | { | 3083 | { |
3084 | .name = "db8500-prcmu-regulators", | 3084 | .name = "db8500-prcmu-regulators", |
3085 | .of_compatible = "stericsson,db8500-prcmu-regulator", | 3085 | .of_compatible = "stericsson,db8500-prcmu-regulator", |
diff --git a/drivers/mfd/htc-pasic3.c b/drivers/mfd/htc-pasic3.c index 6bf92a507b95..e88d4f6fef4c 100644 --- a/drivers/mfd/htc-pasic3.c +++ b/drivers/mfd/htc-pasic3.c | |||
@@ -114,7 +114,7 @@ static struct resource ds1wm_resources[] __initdata = { | |||
114 | }, | 114 | }, |
115 | }; | 115 | }; |
116 | 116 | ||
117 | static struct mfd_cell ds1wm_cell __initdata = { | 117 | static const struct mfd_cell ds1wm_cell __initconst = { |
118 | .name = "ds1wm", | 118 | .name = "ds1wm", |
119 | .enable = ds1wm_enable, | 119 | .enable = ds1wm_enable, |
120 | .disable = ds1wm_disable, | 120 | .disable = ds1wm_disable, |
diff --git a/drivers/mfd/jz4740-adc.c b/drivers/mfd/jz4740-adc.c index 3c0e8cf6916b..7a51c0d0d4f1 100644 --- a/drivers/mfd/jz4740-adc.c +++ b/drivers/mfd/jz4740-adc.c | |||
@@ -181,7 +181,7 @@ static struct resource jz4740_battery_resources[] = { | |||
181 | }, | 181 | }, |
182 | }; | 182 | }; |
183 | 183 | ||
184 | static struct mfd_cell jz4740_adc_cells[] = { | 184 | static const struct mfd_cell jz4740_adc_cells[] = { |
185 | { | 185 | { |
186 | .id = 0, | 186 | .id = 0, |
187 | .name = "jz4740-hwmon", | 187 | .name = "jz4740-hwmon", |
diff --git a/drivers/mfd/lp8788.c b/drivers/mfd/lp8788.c index 0f1221911018..a30bc15fe5ba 100644 --- a/drivers/mfd/lp8788.c +++ b/drivers/mfd/lp8788.c | |||
@@ -71,7 +71,7 @@ static struct resource rtc_irqs[] = { | |||
71 | }, | 71 | }, |
72 | }; | 72 | }; |
73 | 73 | ||
74 | static struct mfd_cell lp8788_devs[] = { | 74 | static const struct mfd_cell lp8788_devs[] = { |
75 | /* 4 bucks */ | 75 | /* 4 bucks */ |
76 | MFD_DEV_WITH_ID(BUCK, 1), | 76 | MFD_DEV_WITH_ID(BUCK, 1), |
77 | MFD_DEV_WITH_ID(BUCK, 2), | 77 | MFD_DEV_WITH_ID(BUCK, 2), |
diff --git a/drivers/mfd/rc5t583.c b/drivers/mfd/rc5t583.c index 346330176afc..df276ad9f40b 100644 --- a/drivers/mfd/rc5t583.c +++ b/drivers/mfd/rc5t583.c | |||
@@ -74,7 +74,7 @@ static struct deepsleep_control_data deepsleep_data[] = { | |||
74 | #define EXT_PWR_REQ \ | 74 | #define EXT_PWR_REQ \ |
75 | (RC5T583_EXT_PWRREQ1_CONTROL | RC5T583_EXT_PWRREQ2_CONTROL) | 75 | (RC5T583_EXT_PWRREQ1_CONTROL | RC5T583_EXT_PWRREQ2_CONTROL) |
76 | 76 | ||
77 | static struct mfd_cell rc5t583_subdevs[] = { | 77 | static const struct mfd_cell rc5t583_subdevs[] = { |
78 | {.name = "rc5t583-gpio",}, | 78 | {.name = "rc5t583-gpio",}, |
79 | {.name = "rc5t583-regulator",}, | 79 | {.name = "rc5t583-regulator",}, |
80 | {.name = "rc5t583-rtc", }, | 80 | {.name = "rc5t583-rtc", }, |
diff --git a/drivers/mfd/rdc321x-southbridge.c b/drivers/mfd/rdc321x-southbridge.c index 21b7bef73507..aab63ee043e3 100644 --- a/drivers/mfd/rdc321x-southbridge.c +++ b/drivers/mfd/rdc321x-southbridge.c | |||
@@ -56,7 +56,7 @@ static struct resource rdc321x_gpio_resources[] = { | |||
56 | } | 56 | } |
57 | }; | 57 | }; |
58 | 58 | ||
59 | static struct mfd_cell rdc321x_sb_cells[] = { | 59 | static const struct mfd_cell rdc321x_sb_cells[] = { |
60 | { | 60 | { |
61 | .name = "rdc321x-wdt", | 61 | .name = "rdc321x-wdt", |
62 | .resources = rdc321x_wdt_resource, | 62 | .resources = rdc321x_wdt_resource, |
diff --git a/drivers/mfd/retu-mfd.c b/drivers/mfd/retu-mfd.c index a1830986eeb7..c8f345f7e9a2 100644 --- a/drivers/mfd/retu-mfd.c +++ b/drivers/mfd/retu-mfd.c | |||
@@ -55,7 +55,7 @@ static struct resource retu_pwrbutton_res[] = { | |||
55 | }, | 55 | }, |
56 | }; | 56 | }; |
57 | 57 | ||
58 | static struct mfd_cell retu_devs[] = { | 58 | static const struct mfd_cell retu_devs[] = { |
59 | { | 59 | { |
60 | .name = "retu-wdt" | 60 | .name = "retu-wdt" |
61 | }, | 61 | }, |
@@ -94,7 +94,7 @@ static struct resource tahvo_usb_res[] = { | |||
94 | }, | 94 | }, |
95 | }; | 95 | }; |
96 | 96 | ||
97 | static struct mfd_cell tahvo_devs[] = { | 97 | static const struct mfd_cell tahvo_devs[] = { |
98 | { | 98 | { |
99 | .name = "tahvo-usb", | 99 | .name = "tahvo-usb", |
100 | .resources = tahvo_usb_res, | 100 | .resources = tahvo_usb_res, |
@@ -122,7 +122,7 @@ static const struct retu_data { | |||
122 | char *chip_name; | 122 | char *chip_name; |
123 | char *companion_name; | 123 | char *companion_name; |
124 | struct regmap_irq_chip *irq_chip; | 124 | struct regmap_irq_chip *irq_chip; |
125 | struct mfd_cell *children; | 125 | const struct mfd_cell *children; |
126 | int nchildren; | 126 | int nchildren; |
127 | } retu_data[] = { | 127 | } retu_data[] = { |
128 | [0] = { | 128 | [0] = { |
diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c index 54cc25546592..b31824c33e15 100644 --- a/drivers/mfd/sec-core.c +++ b/drivers/mfd/sec-core.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #include <linux/mfd/samsung/s5m8767.h> | 31 | #include <linux/mfd/samsung/s5m8767.h> |
32 | #include <linux/regmap.h> | 32 | #include <linux/regmap.h> |
33 | 33 | ||
34 | static struct mfd_cell s5m8751_devs[] = { | 34 | static const struct mfd_cell s5m8751_devs[] = { |
35 | { | 35 | { |
36 | .name = "s5m8751-pmic", | 36 | .name = "s5m8751-pmic", |
37 | }, { | 37 | }, { |
@@ -41,7 +41,7 @@ static struct mfd_cell s5m8751_devs[] = { | |||
41 | }, | 41 | }, |
42 | }; | 42 | }; |
43 | 43 | ||
44 | static struct mfd_cell s5m8763_devs[] = { | 44 | static const struct mfd_cell s5m8763_devs[] = { |
45 | { | 45 | { |
46 | .name = "s5m8763-pmic", | 46 | .name = "s5m8763-pmic", |
47 | }, { | 47 | }, { |
@@ -51,7 +51,7 @@ static struct mfd_cell s5m8763_devs[] = { | |||
51 | }, | 51 | }, |
52 | }; | 52 | }; |
53 | 53 | ||
54 | static struct mfd_cell s5m8767_devs[] = { | 54 | static const struct mfd_cell s5m8767_devs[] = { |
55 | { | 55 | { |
56 | .name = "s5m8767-pmic", | 56 | .name = "s5m8767-pmic", |
57 | }, { | 57 | }, { |
@@ -59,7 +59,7 @@ static struct mfd_cell s5m8767_devs[] = { | |||
59 | }, | 59 | }, |
60 | }; | 60 | }; |
61 | 61 | ||
62 | static struct mfd_cell s2mps11_devs[] = { | 62 | static const struct mfd_cell s2mps11_devs[] = { |
63 | { | 63 | { |
64 | .name = "s2mps11-pmic", | 64 | .name = "s2mps11-pmic", |
65 | }, { | 65 | }, { |
diff --git a/drivers/mfd/timberdale.c b/drivers/mfd/timberdale.c index dbb34f94e5e3..c6668ac70af3 100644 --- a/drivers/mfd/timberdale.c +++ b/drivers/mfd/timberdale.c | |||
@@ -374,7 +374,7 @@ static const struct resource timberdale_dma_resources[] = { | |||
374 | }, | 374 | }, |
375 | }; | 375 | }; |
376 | 376 | ||
377 | static struct mfd_cell timberdale_cells_bar0_cfg0[] = { | 377 | static const struct mfd_cell timberdale_cells_bar0_cfg0[] = { |
378 | { | 378 | { |
379 | .name = "timb-dma", | 379 | .name = "timb-dma", |
380 | .num_resources = ARRAY_SIZE(timberdale_dma_resources), | 380 | .num_resources = ARRAY_SIZE(timberdale_dma_resources), |
@@ -431,7 +431,7 @@ static struct mfd_cell timberdale_cells_bar0_cfg0[] = { | |||
431 | }, | 431 | }, |
432 | }; | 432 | }; |
433 | 433 | ||
434 | static struct mfd_cell timberdale_cells_bar0_cfg1[] = { | 434 | static const struct mfd_cell timberdale_cells_bar0_cfg1[] = { |
435 | { | 435 | { |
436 | .name = "timb-dma", | 436 | .name = "timb-dma", |
437 | .num_resources = ARRAY_SIZE(timberdale_dma_resources), | 437 | .num_resources = ARRAY_SIZE(timberdale_dma_resources), |
@@ -498,7 +498,7 @@ static struct mfd_cell timberdale_cells_bar0_cfg1[] = { | |||
498 | }, | 498 | }, |
499 | }; | 499 | }; |
500 | 500 | ||
501 | static struct mfd_cell timberdale_cells_bar0_cfg2[] = { | 501 | static const struct mfd_cell timberdale_cells_bar0_cfg2[] = { |
502 | { | 502 | { |
503 | .name = "timb-dma", | 503 | .name = "timb-dma", |
504 | .num_resources = ARRAY_SIZE(timberdale_dma_resources), | 504 | .num_resources = ARRAY_SIZE(timberdale_dma_resources), |
@@ -548,7 +548,7 @@ static struct mfd_cell timberdale_cells_bar0_cfg2[] = { | |||
548 | }, | 548 | }, |
549 | }; | 549 | }; |
550 | 550 | ||
551 | static struct mfd_cell timberdale_cells_bar0_cfg3[] = { | 551 | static const struct mfd_cell timberdale_cells_bar0_cfg3[] = { |
552 | { | 552 | { |
553 | .name = "timb-dma", | 553 | .name = "timb-dma", |
554 | .num_resources = ARRAY_SIZE(timberdale_dma_resources), | 554 | .num_resources = ARRAY_SIZE(timberdale_dma_resources), |
@@ -619,7 +619,7 @@ static const struct resource timberdale_sdhc_resources[] = { | |||
619 | }, | 619 | }, |
620 | }; | 620 | }; |
621 | 621 | ||
622 | static struct mfd_cell timberdale_cells_bar1[] = { | 622 | static const struct mfd_cell timberdale_cells_bar1[] = { |
623 | { | 623 | { |
624 | .name = "sdhci", | 624 | .name = "sdhci", |
625 | .num_resources = ARRAY_SIZE(timberdale_sdhc_resources), | 625 | .num_resources = ARRAY_SIZE(timberdale_sdhc_resources), |
@@ -627,7 +627,7 @@ static struct mfd_cell timberdale_cells_bar1[] = { | |||
627 | }, | 627 | }, |
628 | }; | 628 | }; |
629 | 629 | ||
630 | static struct mfd_cell timberdale_cells_bar2[] = { | 630 | static const struct mfd_cell timberdale_cells_bar2[] = { |
631 | { | 631 | { |
632 | .name = "sdhci", | 632 | .name = "sdhci", |
633 | .num_resources = ARRAY_SIZE(timberdale_sdhc_resources), | 633 | .num_resources = ARRAY_SIZE(timberdale_sdhc_resources), |
diff --git a/drivers/mfd/viperboard.c b/drivers/mfd/viperboard.c index af2a6703f34f..e00f5340ed87 100644 --- a/drivers/mfd/viperboard.c +++ b/drivers/mfd/viperboard.c | |||
@@ -37,7 +37,7 @@ static const struct usb_device_id vprbrd_table[] = { | |||
37 | 37 | ||
38 | MODULE_DEVICE_TABLE(usb, vprbrd_table); | 38 | MODULE_DEVICE_TABLE(usb, vprbrd_table); |
39 | 39 | ||
40 | static struct mfd_cell vprbrd_devs[] = { | 40 | static const struct mfd_cell vprbrd_devs[] = { |
41 | { | 41 | { |
42 | .name = "viperboard-gpio", | 42 | .name = "viperboard-gpio", |
43 | }, | 43 | }, |
diff --git a/drivers/mfd/vx855.c b/drivers/mfd/vx855.c index 757ecc63338c..5cd5661158bc 100644 --- a/drivers/mfd/vx855.c +++ b/drivers/mfd/vx855.c | |||
@@ -60,7 +60,7 @@ static struct resource vx855_gpio_resources[] = { | |||
60 | }, | 60 | }, |
61 | }; | 61 | }; |
62 | 62 | ||
63 | static struct mfd_cell vx855_cells[] = { | 63 | static const struct mfd_cell vx855_cells[] = { |
64 | { | 64 | { |
65 | .name = "vx855_gpio", | 65 | .name = "vx855_gpio", |
66 | .num_resources = ARRAY_SIZE(vx855_gpio_resources), | 66 | .num_resources = ARRAY_SIZE(vx855_gpio_resources), |