]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/gpio/max7310.c
Use OBJECT_DECLARE_SIMPLE_TYPE when possible
[mirror_qemu.git] / hw / gpio / max7310.c
index 2888d071ac6b39ec24c8f562e34fba4b94c9fb17..256d833c3a5be7c3a08236ab042beef220ba7506 100644 (file)
@@ -18,9 +18,7 @@
 #include "qom/object.h"
 
 #define TYPE_MAX7310 "max7310"
-typedef struct MAX7310State MAX7310State;
-DECLARE_INSTANCE_CHECKER(MAX7310State, MAX7310,
-                         TYPE_MAX7310)
+OBJECT_DECLARE_SIMPLE_TYPE(MAX7310State, MAX7310)
 
 struct MAX7310State {
     I2CSlave parent_obj;