genirq: Allow irq_chip registration functions to take a const irq_chip

[ Upstream commit 393e1280f7 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Marc Zyngier 2022-02-09 16:25:59 +00:00 • committed by Greg Kroah-Hartman
commit d44d1055f3
2 changed files with 7 additions and 9 deletions