projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16ee62e
)
gpio: max77620: Make regmap_irq_chip const
author
Bhumika Goyal
<bhumirks@gmail.com>
Sat, 12 Aug 2017 06:09:09 +0000
(11:39 +0530)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 14 Aug 2017 14:06:24 +0000
(16:06 +0200)
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>
drivers/gpio/gpio-max77620.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpio/gpio-max77620.c
b/drivers/gpio/gpio-max77620.c
index 743459d9477d746761f72c8f71623decf247ad88..538bce4b5b4271b5d830623840c5e71aa7527017 100644
(file)
--- 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),