From: Bhumika Goyal Date: Sat, 12 Aug 2017 06:09:09 +0000 (+0530) Subject: gpio: max77620: Make regmap_irq_chip const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ee949b51e4165107fe4d9ed18c23829119078722;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Linus Walleij --- 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[] = { }, }; -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),