irqchip/apple-aic: Dynamically compute register offsets
authorHector Martin <marcan@marcan.st>
Tue, 7 Dec 2021 11:06:22 +0000 (20:06 +0900)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Mar 2022 17:32:45 +0000 (10:32 -0700)
commit3f9ac51a00b3d0ade241b73adf58b4498f538c04
treeb6a82805e3760706f93171d67641882fbea0b62e
parent34ad3c5b32f6e7229ef2f45df0903db969dc9e78
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>
drivers/irqchip/irq-apple-aic.c