hw/arm/allwinner-a10: Simplify by passing IRQs with qdev_pass_gpios()
commitf8a865d36dc1578eb8a4f7c896c4f46f4b82ca45
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 17 Jan 2020 14:09:30 +0000 (17 14:09 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 17 Jan 2020 14:09:30 +0000 (17 14:09 +0000)
tree9c3ef919c17d4759e15f1f9518226aaa0b06139e
parent7f0ec9893cc8c99e7ee928fdc66bb3046f3e4cd4
hw/arm/allwinner-a10: Simplify by passing IRQs with qdev_pass_gpios()

By calling qdev_pass_gpios() we don't need to hold a copy of the
IRQs from the INTC into the SoC state.
Instead of filling an array of qemu_irq and passing it around, we
can now directly call qdev_get_gpio_in() on the SoC.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20191230110953.25496-5-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/allwinner-a10.c
include/hw/arm/allwinner-a10.h