aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2013-11-28 03:09:43 -0500
committerLee Jones <lee.jones@linaro.org>2014-01-21 03:13:37 -0500
commita30fffb0606c033d1253261651113c1632aa5f65 (patch)
treee2d9da0c99d8c1e76ea5fe64f20886063d032bd8 /drivers/mfd
parent41096801f9de9b86ddfdfabd195e604b1c1087fe (diff)
mfd: sec: Constify regmap configs and regmap irqs
Add "const" to "static struct regmap_irq" and "static struct regmap_config". Acked-by: Sangbeom Kim <sbkim73@samsung.com> Reviewed-by: Mark Brown <broonie@linaro.org> Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/sec-core.c8
-rw-r--r--drivers/mfd/sec-irq.c12
2 files changed, 10 insertions, 10 deletions
diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c
index cca0f990d287..3ad1b2fbee4a 100644
--- a/drivers/mfd/sec-core.c
+++ b/drivers/mfd/sec-core.c
@@ -134,12 +134,12 @@ static bool s5m8763_volatile(struct device *dev, unsigned int reg)
134 } 134 }
135} 135}
136 136
137static struct regmap_config sec_regmap_config = { 137static const struct regmap_config sec_regmap_config = {
138 .reg_bits = 8, 138 .reg_bits = 8,
139 .val_bits = 8, 139 .val_bits = 8,
140}; 140};
141 141
142static struct regmap_config s2mps11_regmap_config = { 142static const struct regmap_config s2mps11_regmap_config = {
143 .reg_bits = 8, 143 .reg_bits = 8,
144 .val_bits = 8, 144 .val_bits = 8,
145 145
@@ -148,7 +148,7 @@ static struct regmap_config s2mps11_regmap_config = {
148 .cache_type = REGCACHE_FLAT, 148 .cache_type = REGCACHE_FLAT,
149}; 149};
150 150
151static struct regmap_config s5m8763_regmap_config = { 151static const struct regmap_config s5m8763_regmap_config = {
152 .reg_bits = 8, 152 .reg_bits = 8,
153 .val_bits = 8, 153 .val_bits = 8,
154 154
@@ -157,7 +157,7 @@ static struct regmap_config s5m8763_regmap_config = {
157 .cache_type = REGCACHE_FLAT, 157 .cache_type = REGCACHE_FLAT,
158}; 158};
159 159
160static struct regmap_config s5m8767_regmap_config = { 160static const struct regmap_config s5m8767_regmap_config = {
161 .reg_bits = 8, 161 .reg_bits = 8,
162 .val_bits = 8, 162 .val_bits = 8,
163 163
diff --git a/drivers/mfd/sec-irq.c b/drivers/mfd/sec-irq.c
index b441b1be27cb..4de494f51d40 100644
--- a/drivers/mfd/sec-irq.c
+++ b/drivers/mfd/sec-irq.c
@@ -22,7 +22,7 @@
22#include <linux/mfd/samsung/s5m8763.h> 22#include <linux/mfd/samsung/s5m8763.h>
23#include <linux/mfd/samsung/s5m8767.h> 23#include <linux/mfd/samsung/s5m8767.h>
24 24
25static struct regmap_irq s2mps11_irqs[] = { 25static const struct regmap_irq s2mps11_irqs[] = {
26 [S2MPS11_IRQ_PWRONF] = { 26 [S2MPS11_IRQ_PWRONF] = {
27 .reg_offset = 0, 27 .reg_offset = 0,
28 .mask = S2MPS11_IRQ_PWRONF_MASK, 28 .mask = S2MPS11_IRQ_PWRONF_MASK,
@@ -90,7 +90,7 @@ static struct regmap_irq s2mps11_irqs[] = {
90}; 90};
91 91
92 92
93static struct regmap_irq s5m8767_irqs[] = { 93static const struct regmap_irq s5m8767_irqs[] = {
94 [S5M8767_IRQ_PWRR] = { 94 [S5M8767_IRQ_PWRR] = {
95 .reg_offset = 0, 95 .reg_offset = 0,
96 .mask = S5M8767_IRQ_PWRR_MASK, 96 .mask = S5M8767_IRQ_PWRR_MASK,
@@ -161,7 +161,7 @@ static struct regmap_irq s5m8767_irqs[] = {
161 }, 161 },
162}; 162};
163 163
164static struct regmap_irq s5m8763_irqs[] = { 164static const struct regmap_irq s5m8763_irqs[] = {
165 [S5M8763_IRQ_DCINF] = { 165 [S5M8763_IRQ_DCINF] = {
166 .reg_offset = 0, 166 .reg_offset = 0,
167 .mask = S5M8763_IRQ_DCINF_MASK, 167 .mask = S5M8763_IRQ_DCINF_MASK,
@@ -236,7 +236,7 @@ static struct regmap_irq s5m8763_irqs[] = {
236 }, 236 },
237}; 237};
238 238
239static struct regmap_irq_chip s2mps11_irq_chip = { 239static const struct regmap_irq_chip s2mps11_irq_chip = {
240 .name = "s2mps11", 240 .name = "s2mps11",
241 .irqs = s2mps11_irqs, 241 .irqs = s2mps11_irqs,
242 .num_irqs = ARRAY_SIZE(s2mps11_irqs), 242 .num_irqs = ARRAY_SIZE(s2mps11_irqs),
@@ -246,7 +246,7 @@ static struct regmap_irq_chip s2mps11_irq_chip = {
246 .ack_base = S2MPS11_REG_INT1, 246 .ack_base = S2MPS11_REG_INT1,
247}; 247};
248 248
249static struct regmap_irq_chip s5m8767_irq_chip = { 249static const struct regmap_irq_chip s5m8767_irq_chip = {
250 .name = "s5m8767", 250 .name = "s5m8767",
251 .irqs = s5m8767_irqs, 251 .irqs = s5m8767_irqs,
252 .num_irqs = ARRAY_SIZE(s5m8767_irqs), 252 .num_irqs = ARRAY_SIZE(s5m8767_irqs),
@@ -256,7 +256,7 @@ static struct regmap_irq_chip s5m8767_irq_chip = {
256 .ack_base = S5M8767_REG_INT1, 256 .ack_base = S5M8767_REG_INT1,
257}; 257};
258 258
259static struct regmap_irq_chip s5m8763_irq_chip = { 259static const struct regmap_irq_chip s5m8763_irq_chip = {
260 .name = "s5m8763", 260 .name = "s5m8763",
261 .irqs = s5m8763_irqs, 261 .irqs = s5m8763_irqs,
262 .num_irqs = ARRAY_SIZE(s5m8763_irqs), 262 .num_irqs = ARRAY_SIZE(s5m8763_irqs),