]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/i2c/versatile_i2c.c
Use DECLARE_*CHECKER* macros
[mirror_qemu.git] / hw / i2c / versatile_i2c.c
index 3ab386d6717101126491337fd9abafd82cc0880a..3a04ba3969170940a31145dedb21dc813e6c9fbd 100644 (file)
@@ -30,8 +30,8 @@
 #include "qom/object.h"
 
 typedef ArmSbconI2CState VersatileI2CState;
-#define VERSATILE_I2C(obj) \
-    OBJECT_CHECK(VersatileI2CState, (obj), TYPE_VERSATILE_I2C)
+DECLARE_INSTANCE_CHECKER(VersatileI2CState, VERSATILE_I2C,
+                         TYPE_VERSATILE_I2C)