[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 12/14] hw/misc/sbsa_ec: Declare QOM macros using OBJECT_DECLARE_S
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 12/14] hw/misc/sbsa_ec: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE() |
Date: |
Mon, 9 Jan 2023 15:03:04 +0100 |
This model was merged few days before the QOM cleanup from
commit 8063396bf3 ("Use OBJECT_DECLARE_SIMPLE_TYPE when possible")
was pulled and merged. Manually adapt.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
hw/misc/sbsa_ec.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/hw/misc/sbsa_ec.c b/hw/misc/sbsa_ec.c
index 6f19c21195..86b23a5372 100644
--- a/hw/misc/sbsa_ec.c
+++ b/hw/misc/sbsa_ec.c
@@ -21,8 +21,7 @@ typedef struct SECUREECState {
} SECUREECState;
#define TYPE_SBSA_SECURE_EC "sbsa-ec"
-#define SBSA_SECURE_EC(obj) \
- OBJECT_CHECK(SECUREECState, (obj), TYPE_SBSA_SECURE_EC)
+OBJECT_DECLARE_SIMPLE_TYPE(SECUREECState, SBSA_SECURE_EC)
enum sbsa_ec_powerstates {
SBSA_EC_CMD_POWEROFF = 0x01,
--
2.38.1
- [PATCH 02/14] hw/gpio/omap_gpio: Add local variable to avoid embedded cast, (continued)
- [PATCH 02/14] hw/gpio/omap_gpio: Add local variable to avoid embedded cast, 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 04/14] hw/gpio/omap_gpio: Use CamelCase for TYPE_OMAP1_GPIO type name, 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 11/14] hw/misc/sbsa_ec: Rename TYPE_SBSA_EC -> TYPE_SBSA_SECURE_EC, Philippe Mathieu-Daudé, 2023/01/09
- [PATCH 12/14] hw/misc/sbsa_ec: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE(),
Philippe Mathieu-Daudé <=
- [PATCH 13/14] hw/intc/xilinx_intc: Use 'XpsIntc' typedef instead of 'struct xlx_pic', Philippe Mathieu-Daudé, 2023/01/09
- [PATCH 14/14] hw/timer/xilinx_timer: Use XpsTimerState instead of 'struct timerblock', Philippe Mathieu-Daudé, 2023/01/09
- Re: [PATCH 00/14] hw/arm: QOM OBJECT_DECLARE_SIMPLE_TYPE cleanups, Richard Henderson, 2023/01/09
- Re: [PATCH 00/14] hw/arm: QOM OBJECT_DECLARE_SIMPLE_TYPE cleanups, Peter Maydell, 2023/01/12