OSDN Git Service

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)
commit393e1280f765661cf39785e967676a4e57324126
tree13bcacadaa6b54ff9bcbc29c75d2608614536d5f
parent45ec846c1cd11835a29c85645065115dd791aa45
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