]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
pinctrl: single: Constify irq_domain_ops
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Mon, 27 Apr 2015 12:54:06 +0000 (21:54 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 6 May 2015 13:32:45 +0000 (15:32 +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/pinctrl/pinctrl-single.c

index 13b45f29772788514e62dca7b74cad5d0063e856..968e352c595fb412f88700d7c4c29f545977e228 100644 (file)
@@ -1726,7 +1726,7 @@ static int pcs_irqdomain_map(struct irq_domain *d, unsigned int irq,
        return 0;
 }
 
-static struct irq_domain_ops pcs_irqdomain_ops = {
+static const struct irq_domain_ops pcs_irqdomain_ops = {
        .map = pcs_irqdomain_map,
        .xlate = irq_domain_xlate_onecell,
 };