]> git.openpandora.org Git - pandora-kernel.git/commitdiff
gpio: Constify irq_domain_ops
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Mon, 27 Apr 2015 12:54:07 +0000 (21:54 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 6 May 2015 13:33:48 +0000 (15:33 +0200)
The irq_domain_ops are not modified by the driver and the irqdomain core
code accepts pointer to a const data.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-bcm-kona.c
drivers/gpio/gpio-em.c
drivers/gpio/gpio-grgpio.c
drivers/gpio/gpio-mpc8xxx.c
drivers/gpio/gpio-sa1100.c
drivers/gpio/gpio-sodaville.c

index b164ce837b43fbd9f9ddda6ed93353d66ac33d45..cb89f37ffc02035f7b2074313d7ec90a92ae616d 100644 (file)
@@ -534,7 +534,7 @@ static void bcm_kona_gpio_irq_unmap(struct irq_domain *d, unsigned int irq)
        irq_set_chip_data(irq, NULL);
 }
 
-static struct irq_domain_ops bcm_kona_irq_ops = {
+static const struct irq_domain_ops bcm_kona_irq_ops = {
        .map = bcm_kona_gpio_irq_map,
        .unmap = bcm_kona_gpio_irq_unmap,
        .xlate = irq_domain_xlate_twocell,
index 3cfcfc620c8e4bab5938c9ebe2bf9c818481d63b..fbf287307c4cc736c5032fdbf1ddbc3a77dec45d 100644 (file)
@@ -266,7 +266,7 @@ static int em_gio_irq_domain_map(struct irq_domain *h, unsigned int irq,
        return 0;
 }
 
-static struct irq_domain_ops em_gio_irq_domain_ops = {
+static const struct irq_domain_ops em_gio_irq_domain_ops = {
        .map    = em_gio_irq_domain_map,
        .xlate  = irq_domain_xlate_twocell,
 };
index 35a02770c8b0cee8f6c98e1e5ff970d5e5ff4ff5..0a8f7617e72e99d413439c072e8a185cecae83e4 100644 (file)
@@ -332,7 +332,7 @@ static void grgpio_irq_unmap(struct irq_domain *d, unsigned int irq)
        spin_unlock_irqrestore(&priv->bgc.lock, flags);
 }
 
-static struct irq_domain_ops grgpio_irq_domain_ops = {
+static const struct irq_domain_ops grgpio_irq_domain_ops = {
        .map    = grgpio_irq_map,
        .unmap  = grgpio_irq_unmap,
 };
Simple merge
Simple merge
Simple merge