]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/hw/i2c/arm_sbcon_i2c.h
Use DECLARE_*CHECKER* macros
[mirror_qemu.git] / include / hw / i2c / arm_sbcon_i2c.h
index ca548679642678c8b14d615a82bb16d1962cf60d..ad96781e7a8421ff6d359af7fbbf213e248126f8 100644 (file)
@@ -20,8 +20,8 @@
 #define TYPE_ARM_SBCON_I2C TYPE_VERSATILE_I2C
 
 typedef struct ArmSbconI2CState ArmSbconI2CState;
-#define ARM_SBCON_I2C(obj) \
-    OBJECT_CHECK(ArmSbconI2CState, (obj), TYPE_ARM_SBCON_I2C)
+DECLARE_INSTANCE_CHECKER(ArmSbconI2CState, ARM_SBCON_I2C,
+                         TYPE_ARM_SBCON_I2C)
 
 struct ArmSbconI2CState {
     /*< private >*/