diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2013-11-28 03:09:43 -0500 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-01-21 03:13:37 -0500 |
commit | a30fffb0606c033d1253261651113c1632aa5f65 (patch) | |
tree | e2d9da0c99d8c1e76ea5fe64f20886063d032bd8 /drivers/mfd | |
parent | 41096801f9de9b86ddfdfabd195e604b1c1087fe (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.c | 8 | ||||
-rw-r--r-- | drivers/mfd/sec-irq.c | 12 |
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 | ||
137 | static struct regmap_config sec_regmap_config = { | 137 | static 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 | ||
142 | static struct regmap_config s2mps11_regmap_config = { | 142 | static 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 | ||
151 | static struct regmap_config s5m8763_regmap_config = { | 151 | static 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 | ||
160 | static struct regmap_config s5m8767_regmap_config = { | 160 | static 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 | ||
25 | static struct regmap_irq s2mps11_irqs[] = { | 25 | static 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 | ||
93 | static struct regmap_irq s5m8767_irqs[] = { | 93 | static 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 | ||
164 | static struct regmap_irq s5m8763_irqs[] = { | 164 | static 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 | ||
239 | static struct regmap_irq_chip s2mps11_irq_chip = { | 239 | static 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 | ||
249 | static struct regmap_irq_chip s5m8767_irq_chip = { | 249 | static 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 | ||
259 | static struct regmap_irq_chip s5m8763_irq_chip = { | 259 | static 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), |