gpio: Constify irq_domain_ops
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>
This commit is contained in:

committed by
Linus Walleij

parent
e5b6095376
commit
0b354dc433
@@ -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,
|
||||
};
|
||||
|
Reference in New Issue
Block a user