OSDN Git Service

irqdomain: Let irq_domain_set_{info,hwirq_and_chip} take a const irq_chip
authorMarc Zyngier <maz@kernel.org>
Wed, 9 Feb 2022 16:25:58 +0000 (16:25 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 15 Feb 2022 11:10:21 +0000 (11:10 +0000)
commit45ec846c1cd11835a29c85645065115dd791aa45
tree893640c5346e494795d32ace791d36239284708a
parentbeb0622138cd2848dec06b0651a988c39d099574
irqdomain: Let irq_domain_set_{info,hwirq_and_chip} 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_domain_set_hwirq_and_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-2-maz@kernel.org
include/linux/irqdomain.h
kernel/irq/irqdomain.c