summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/da9063-irq.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>2015-04-27 14:54:13 +0200
committerLee Jones <lee.jones@linaro.org>2015-06-22 13:25:01 +0200
commit7ce7b26f84cfcbcb04f526f56f685a56ccddf355 (patch)
tree33c78fde9eee73e24ec91e1f98051eb9909d5b91 /drivers/mfd/da9063-irq.c
parentMerge branches 'ib-mfd-watchdog-rtc-4.2', 'ib-mfd-regulator-4.2' and 'ib-mfd-... (diff)
downloadlinux-7ce7b26f84cfcbcb04f526f56f685a56ccddf355.tar.xz
linux-7ce7b26f84cfcbcb04f526f56f685a56ccddf355.zip
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/da9063-irq.c')
-rw-r--r--drivers/mfd/da9063-irq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/da9063-irq.c b/drivers/mfd/da9063-irq.c
index 822922602ce9..eaf1ec9208b2 100644
--- a/drivers/mfd/da9063-irq.c
+++ b/drivers/mfd/da9063-irq.c
@@ -34,7 +34,7 @@ struct da9063_irq_data {
u8 mask;
};
-static struct regmap_irq da9063_irqs[] = {
+static const struct regmap_irq da9063_irqs[] = {
/* DA9063 event A register */
[DA9063_IRQ_ONKEY] = {
.reg_offset = DA9063_REG_EVENT_A_OFFSET,
@@ -153,7 +153,7 @@ static struct regmap_irq da9063_irqs[] = {
},
};
-static struct regmap_irq_chip da9063_irq_chip = {
+static const struct regmap_irq_chip da9063_irq_chip = {
.name = "da9063-irq",
.irqs = da9063_irqs,
.num_irqs = DA9063_NUM_IRQ,