irqchip/apple-aic: Dynamically compute register offsets
authorHector Martin <marcan@marcan.st>
Wed, 9 Mar 2022 19:21:21 +0000 (04:21 +0900)
committerMarc Zyngier <maz@kernel.org>
Fri, 11 Mar 2022 08:59:46 +0000 (08:59 +0000)
commitdc97fd6fec009957e81026055fc99a03877ff3b8
tree2789be34764909e8667adc816c11592229315a67
parent7c841f5f6fa3f991cb76b96cd2378337a74011b3
irqchip/apple-aic: Dynamically compute register offsets

This allows us to support AIC variants with different numbers of IRQs
based on capability registers.

Signed-off-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220309192123.152028-6-marcan@marcan.st
drivers/irqchip/irq-apple-aic.c