diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-12 02:09:09 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-08-14 10:06:24 -0400 |
commit | ee949b51e4165107fe4d9ed18c23829119078722 (patch) | |
tree | c089b1e27956e343ebc87113cf5e7d93fe9afe77 | |
parent | 16ee62e560bcd194c360d943aeceeb73820fcaa5 (diff) |
gpio: max77620: Make regmap_irq_chip const
Make the structure const as it is only passed to the function
devm_regmap_add_irq_chip having the corresponding argument as const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/gpio/gpio-max77620.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-max77620.c b/drivers/gpio/gpio-max77620.c index 743459d9477d..538bce4b5b42 100644 --- a/drivers/gpio/gpio-max77620.c +++ b/drivers/gpio/gpio-max77620.c | |||
@@ -82,7 +82,7 @@ static const struct regmap_irq max77620_gpio_irqs[] = { | |||
82 | }, | 82 | }, |
83 | }; | 83 | }; |
84 | 84 | ||
85 | static struct regmap_irq_chip max77620_gpio_irq_chip = { | 85 | static const struct regmap_irq_chip max77620_gpio_irq_chip = { |
86 | .name = "max77620-gpio", | 86 | .name = "max77620-gpio", |
87 | .irqs = max77620_gpio_irqs, | 87 | .irqs = max77620_gpio_irqs, |
88 | .num_irqs = ARRAY_SIZE(max77620_gpio_irqs), | 88 | .num_irqs = ARRAY_SIZE(max77620_gpio_irqs), |