Message ID | 20180626220029.19088-1-jcd@tribudubois.net |
---|---|
State | New |
Headers | show |
Series | i.mx7d fixes | expand |
On 06/26/2018 07:00 PM, Jean-Christophe Dubois wrote: > The qdev_get_gpio_in() function accept an int as second parameter. > > Signed-off-by: Jean-Christophe Dubois <jcd@tribudubois.net> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> > --- > hw/arm/fsl-imx7.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/hw/arm/fsl-imx7.c b/hw/arm/fsl-imx7.c > index e15aadb587..44fde03cbe 100644 > --- a/hw/arm/fsl-imx7.c > +++ b/hw/arm/fsl-imx7.c > @@ -324,7 +324,7 @@ static void fsl_imx7_realize(DeviceState *dev, Error **errp) > FSL_IMX7_ECSPI4_ADDR, > }; > > - static const hwaddr FSL_IMX7_SPIn_IRQ[FSL_IMX7_NUM_ECSPIS] = { > + static const int FSL_IMX7_SPIn_IRQ[FSL_IMX7_NUM_ECSPIS] = { > FSL_IMX7_ECSPI1_IRQ, > FSL_IMX7_ECSPI2_IRQ, > FSL_IMX7_ECSPI3_IRQ, > @@ -349,7 +349,7 @@ static void fsl_imx7_realize(DeviceState *dev, Error **errp) > FSL_IMX7_I2C4_ADDR, > }; > > - static const hwaddr FSL_IMX7_I2Cn_IRQ[FSL_IMX7_NUM_I2CS] = { > + static const int FSL_IMX7_I2Cn_IRQ[FSL_IMX7_NUM_I2CS] = { > FSL_IMX7_I2C1_IRQ, > FSL_IMX7_I2C2_IRQ, > FSL_IMX7_I2C3_IRQ, > @@ -515,7 +515,7 @@ static void fsl_imx7_realize(DeviceState *dev, Error **errp) > FSL_IMX7_USB3_ADDR, > }; > > - static const hwaddr FSL_IMX7_USBn_IRQ[FSL_IMX7_NUM_USBS] = { > + static const int FSL_IMX7_USBn_IRQ[FSL_IMX7_NUM_USBS] = { > FSL_IMX7_USB1_IRQ, > FSL_IMX7_USB2_IRQ, > FSL_IMX7_USB3_IRQ, >
diff --git a/hw/arm/fsl-imx7.c b/hw/arm/fsl-imx7.c index e15aadb587..44fde03cbe 100644 --- a/hw/arm/fsl-imx7.c +++ b/hw/arm/fsl-imx7.c @@ -324,7 +324,7 @@ static void fsl_imx7_realize(DeviceState *dev, Error **errp) FSL_IMX7_ECSPI4_ADDR, }; - static const hwaddr FSL_IMX7_SPIn_IRQ[FSL_IMX7_NUM_ECSPIS] = { + static const int FSL_IMX7_SPIn_IRQ[FSL_IMX7_NUM_ECSPIS] = { FSL_IMX7_ECSPI1_IRQ, FSL_IMX7_ECSPI2_IRQ, FSL_IMX7_ECSPI3_IRQ, @@ -349,7 +349,7 @@ static void fsl_imx7_realize(DeviceState *dev, Error **errp) FSL_IMX7_I2C4_ADDR, }; - static const hwaddr FSL_IMX7_I2Cn_IRQ[FSL_IMX7_NUM_I2CS] = { + static const int FSL_IMX7_I2Cn_IRQ[FSL_IMX7_NUM_I2CS] = { FSL_IMX7_I2C1_IRQ, FSL_IMX7_I2C2_IRQ, FSL_IMX7_I2C3_IRQ, @@ -515,7 +515,7 @@ static void fsl_imx7_realize(DeviceState *dev, Error **errp) FSL_IMX7_USB3_ADDR, }; - static const hwaddr FSL_IMX7_USBn_IRQ[FSL_IMX7_NUM_USBS] = { + static const int FSL_IMX7_USBn_IRQ[FSL_IMX7_NUM_USBS] = { FSL_IMX7_USB1_IRQ, FSL_IMX7_USB2_IRQ, FSL_IMX7_USB3_IRQ,
The qdev_get_gpio_in() function accept an int as second parameter. Signed-off-by: Jean-Christophe Dubois <jcd@tribudubois.net> --- hw/arm/fsl-imx7.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)