aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/wm8994-irq.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>2015-04-27 08:54:13 -0400
committerLee Jones <lee.jones@linaro.org>2015-06-22 07:25:01 -0400
commit7ce7b26f84cfcbcb04f526f56f685a56ccddf355 (patch)
tree33c78fde9eee73e24ec91e1f98051eb9909d5b91 /drivers/mfd/wm8994-irq.c
parent79aa79342c70c47a6e55f4865e8154f155109946 (diff)
mfd: Constify regmap and irq configuration data
Constify in various drivers configuration data which is not modified: - regmap_irq_chip, - individual regmap_irq's in array, - regmap_config, - irq_domain_ops, Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/wm8994-irq.c')
-rw-r--r--drivers/mfd/wm8994-irq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mfd/wm8994-irq.c b/drivers/mfd/wm8994-irq.c
index a14407edbd89..55c380a67686 100644
--- a/drivers/mfd/wm8994-irq.c
+++ b/drivers/mfd/wm8994-irq.c
@@ -28,7 +28,7 @@
28 28
29#include <linux/delay.h> 29#include <linux/delay.h>
30 30
31static struct regmap_irq wm8994_irqs[] = { 31static const struct regmap_irq wm8994_irqs[] = {
32 [WM8994_IRQ_TEMP_SHUT] = { 32 [WM8994_IRQ_TEMP_SHUT] = {
33 .reg_offset = 1, 33 .reg_offset = 1,
34 .mask = WM8994_TEMP_SHUT_EINT, 34 .mask = WM8994_TEMP_SHUT_EINT,
@@ -128,7 +128,7 @@ static struct regmap_irq wm8994_irqs[] = {
128 }, 128 },
129}; 129};
130 130
131static struct regmap_irq_chip wm8994_irq_chip = { 131static const struct regmap_irq_chip wm8994_irq_chip = {
132 .name = "wm8994", 132 .name = "wm8994",
133 .irqs = wm8994_irqs, 133 .irqs = wm8994_irqs,
134 .num_irqs = ARRAY_SIZE(wm8994_irqs), 134 .num_irqs = ARRAY_SIZE(wm8994_irqs),
@@ -184,7 +184,7 @@ static int wm8994_edge_irq_map(struct irq_domain *h, unsigned int virq,
184 return 0; 184 return 0;
185} 185}
186 186
187static struct irq_domain_ops wm8994_edge_irq_ops = { 187static const struct irq_domain_ops wm8994_edge_irq_ops = {
188 .map = wm8994_edge_irq_map, 188 .map = wm8994_edge_irq_map,
189 .xlate = irq_domain_xlate_twocell, 189 .xlate = irq_domain_xlate_twocell,
190}; 190};