]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/display/ads7846.c
Use OBJECT_DECLARE_SIMPLE_TYPE when possible
[mirror_qemu.git] / hw / display / ads7846.c
index 4b87ee7135a3345fa2c6a092fecd78e8ab699cc1..023165b2a32f84681720743b98c54d8828ee6f81 100644 (file)
@@ -29,11 +29,9 @@ struct ADS7846State {
     int cycle;
     int output;
 };
-typedef struct ADS7846State ADS7846State;
 
 #define TYPE_ADS7846 "ads7846"
-DECLARE_INSTANCE_CHECKER(ADS7846State, ADS7846,
-                         TYPE_ADS7846)
+OBJECT_DECLARE_SIMPLE_TYPE(ADS7846State, ADS7846)
 
 /* Control-byte bitfields */
 #define CB_PD0         (1 << 0)