]> git.baikalelectronics.ru Git - kernel.git/commit
genirq: Allow irq_chip registration functions to take a const irq_chip
authorMarc Zyngier <maz@kernel.org>
Wed, 9 Feb 2022 16:25:59 +0000 (16:25 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 15 Feb 2022 11:10:21 +0000 (11:10 +0000)
commitfbea8217139a133ec9f5d56d5c7dc1705930c39e
tree13bcacadaa6b54ff9bcbc29c75d2608614536d5f
parentb0f163171731db6a126f96568d03f671569871d7
genirq: Allow irq_chip registration functions to take a const irq_chip

In order to let a const irqchip be fed to the irqchip layer, adjust
the various prototypes. An extra cast in irq_set_chip()() is required
to avoid a warning.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20220209162607.1118325-3-maz@kernel.org
include/linux/irq.h
kernel/irq/chip.c