aboutsummaryrefslogtreecommitdiff
path: root/include/hw/i2c/smbus_slave.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/i2c/smbus_slave.h')
-rw-r--r--include/hw/i2c/smbus_slave.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/hw/i2c/smbus_slave.h b/include/hw/i2c/smbus_slave.h
index 8d16e4bcd9..cb9cb372f9 100644
--- a/include/hw/i2c/smbus_slave.h
+++ b/include/hw/i2c/smbus_slave.h
@@ -29,10 +29,8 @@
#include "qom/object.h"
#define TYPE_SMBUS_DEVICE "smbus-device"
-typedef struct SMBusDevice SMBusDevice;
-typedef struct SMBusDeviceClass SMBusDeviceClass;
-DECLARE_OBJ_CHECKERS(SMBusDevice, SMBusDeviceClass,
- SMBUS_DEVICE, TYPE_SMBUS_DEVICE)
+OBJECT_DECLARE_TYPE(SMBusDevice, SMBusDeviceClass,
+ smbus_device, SMBUS_DEVICE)
struct SMBusDeviceClass {