提交 ee949b51 编写于 作者: B Bhumika Goyal 提交者: Linus Walleij

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: NBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 16ee62e5
...@@ -82,7 +82,7 @@ static const struct regmap_irq max77620_gpio_irqs[] = { ...@@ -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", .name = "max77620-gpio",
.irqs = max77620_gpio_irqs, .irqs = max77620_gpio_irqs,
.num_irqs = ARRAY_SIZE(max77620_gpio_irqs), .num_irqs = ARRAY_SIZE(max77620_gpio_irqs),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册