mirror of
https://github.com/mii443/qemu.git
synced 2025-09-02 23:29:21 +00:00
hw/misc/sbsa_ec: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE()
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>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20230109140306.23161-13-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
committed by
Peter Maydell
parent
97b49d3509
commit
95700465ac
@ -21,8 +21,7 @@ typedef struct SECUREECState {
|
|||||||
} SECUREECState;
|
} SECUREECState;
|
||||||
|
|
||||||
#define TYPE_SBSA_SECURE_EC "sbsa-ec"
|
#define TYPE_SBSA_SECURE_EC "sbsa-ec"
|
||||||
#define SBSA_SECURE_EC(obj) \
|
OBJECT_DECLARE_SIMPLE_TYPE(SECUREECState, SBSA_SECURE_EC)
|
||||||
OBJECT_CHECK(SECUREECState, (obj), TYPE_SBSA_SECURE_EC)
|
|
||||||
|
|
||||||
enum sbsa_ec_powerstates {
|
enum sbsa_ec_powerstates {
|
||||||
SBSA_EC_CMD_POWEROFF = 0x01,
|
SBSA_EC_CMD_POWEROFF = 0x01,
|
||||||
|
Reference in New Issue
Block a user