Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1710173 > unrolled thread

[PATCH 2/2] gpio: make regmap_irq_chip const

Started byBhumika Goyal <bhumirks@gmail.com>
First post2017-08-12 08:10 +0200
Last post2017-08-14 16:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/2] gpio: make regmap_irq_chip const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-12 08:10 +0200
    Re: [PATCH 2/2] gpio: make regmap_irq_chip const Linus Walleij <linus.walleij@linaro.org> - 2017-08-14 16:10 +0200

#1710173 — [PATCH 2/2] gpio: make regmap_irq_chip const

FromBhumika Goyal <bhumirks@gmail.com>
Date2017-08-12 08:10 +0200
Subject[PATCH 2/2] gpio: make regmap_irq_chip const
Message-ID<udxMu-5nF-1@gated-at.bofh.it>
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>
---
 drivers/gpio/gpio-max77620.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-max77620.c b/drivers/gpio/gpio-max77620.c
index 743459d..538bce4 100644
--- a/drivers/gpio/gpio-max77620.c
+++ b/drivers/gpio/gpio-max77620.c
@@ -82,7 +82,7 @@ struct max77620_gpio {
 	},
 };
 
-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),
-- 
1.9.1

[toc] | [next] | [standalone]


#1710960

FromLinus Walleij <linus.walleij@linaro.org>
Date2017-08-14 16:10 +0200
Message-ID<ueoe7-58o-37@gated-at.bofh.it>
In reply to#1710173
On Sat, Aug 12, 2017 at 8:09 AM, Bhumika Goyal <bhumirks@gmail.com> wrote:

> 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>

Patch applied.

Yours,
Linus Walleij

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web