Skip to content

Commit

Permalink
gpio: max77620: Make regmap_irq_chip const
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bhumika Goyal authored and Linus Walleij committed Aug 14, 2017
1 parent 16ee62e commit ee949b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpio-max77620.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static const struct regmap_irq max77620_gpio_irqs[] = {
},
};

static struct regmap_irq_chip max77620_gpio_irq_chip = {
static const struct regmap_irq_chip max77620_gpio_irq_chip = {
.name = "max77620-gpio",
.irqs = max77620_gpio_irqs,
.num_irqs = ARRAY_SIZE(max77620_gpio_irqs),
Expand Down

0 comments on commit ee949b5

Please sign in to comment.