]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - hw/misc/applesmc.c
Use OBJECT_DECLARE_SIMPLE_TYPE when possible
[thirdparty/qemu.git] / hw / misc / applesmc.c
index dca3fba028986e64a2e4746eaac6c9480952afca..a4deb3e7a0c172ef0fd8fac1eeb064ad4c5fbf1a 100644 (file)
@@ -90,9 +90,7 @@ struct AppleSMCData {
     QLIST_ENTRY(AppleSMCData) node;
 };
 
-typedef struct AppleSMCState AppleSMCState;
-DECLARE_INSTANCE_CHECKER(AppleSMCState, APPLE_SMC,
-                         TYPE_APPLE_SMC)
+OBJECT_DECLARE_SIMPLE_TYPE(AppleSMCState, APPLE_SMC)
 
 struct AppleSMCState {
     ISADevice parent_obj;