[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 01/14] hw/arm/pxa: Avoid forward-declaring PXA2xxI2CState
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 01/14] hw/arm/pxa: Avoid forward-declaring PXA2xxI2CState |
Date: |
Mon, 9 Jan 2023 15:02:53 +0100 |
To avoid forward-declaring PXA2xxI2CState, declare
PXA2XX_I2C before its use in pxa2xx_i2c_init() prototype.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
include/hw/arm/pxa.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/hw/arm/pxa.h b/include/hw/arm/pxa.h
index 1095504b86..cdbff85afe 100644
--- a/include/hw/arm/pxa.h
+++ b/include/hw/arm/pxa.h
@@ -119,14 +119,14 @@ void pxa27x_register_keypad(PXA2xxKeyPadState *kp,
const struct keymap *map, int size);
/* pxa2xx.c */
-typedef struct PXA2xxI2CState PXA2xxI2CState;
+#define TYPE_PXA2XX_I2C "pxa2xx_i2c"
+OBJECT_DECLARE_SIMPLE_TYPE(PXA2xxI2CState, PXA2XX_I2C)
+
PXA2xxI2CState *pxa2xx_i2c_init(hwaddr base,
qemu_irq irq, uint32_t page_size);
I2CBus *pxa2xx_i2c_bus(PXA2xxI2CState *s);
-#define TYPE_PXA2XX_I2C "pxa2xx_i2c"
typedef struct PXA2xxI2SState PXA2xxI2SState;
-OBJECT_DECLARE_SIMPLE_TYPE(PXA2xxI2CState, PXA2XX_I2C)
#define TYPE_PXA2XX_FIR "pxa2xx-fir"
OBJECT_DECLARE_SIMPLE_TYPE(PXA2xxFIrState, PXA2XX_FIR)
--
2.38.1
- [PATCH 00/14] hw/arm: QOM OBJECT_DECLARE_SIMPLE_TYPE cleanups, Philippe Mathieu-Daudé, 2023/01/09
- [PATCH 01/14] hw/arm/pxa: Avoid forward-declaring PXA2xxI2CState,
Philippe Mathieu-Daudé <=
- [PATCH 02/14] hw/gpio/omap_gpio: Add local variable to avoid embedded cast, Philippe Mathieu-Daudé, 2023/01/09
- [PATCH 04/14] hw/gpio/omap_gpio: Use CamelCase for TYPE_OMAP1_GPIO type name, Philippe Mathieu-Daudé, 2023/01/09
- [PATCH 03/14] hw/arm/omap: Drop useless casts from void * to pointer, Philippe Mathieu-Daudé, 2023/01/09
- [PATCH 05/14] hw/gpio/omap_gpio: Use CamelCase for TYPE_OMAP2_GPIO type name, Philippe Mathieu-Daudé, 2023/01/09
- [PATCH 06/14] hw/intc/omap_intc: Use CamelCase for TYPE_OMAP_INTC type name, Philippe Mathieu-Daudé, 2023/01/09
- [PATCH 07/14] hw/arm/stellaris: Drop useless casts from void * to pointer, Philippe Mathieu-Daudé, 2023/01/09
- [PATCH 08/14] hw/arm/stellaris: Use CamelCase for STELLARIS_ADC type name, Philippe Mathieu-Daudé, 2023/01/09
- [PATCH 09/14] hw/arm/bcm2836: Remove definitions generated by OBJECT_DECLARE_TYPE(), Philippe Mathieu-Daudé, 2023/01/09
- [PATCH 10/14] hw/arm/npcm7xx: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE(), Philippe Mathieu-Daudé, 2023/01/09
- [PATCH 12/14] hw/misc/sbsa_ec: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE(), Philippe Mathieu-Daudé, 2023/01/09