summaryrefslogtreecommitdiffstats
path: root/hw/gpio/max7310.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/gpio/max7310.c')
-rw-r--r--hw/gpio/max7310.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/gpio/max7310.c b/hw/gpio/max7310.c
index dd7e7f293d..5511047f35 100644
--- a/hw/gpio/max7310.c
+++ b/hw/gpio/max7310.c
@@ -18,7 +18,8 @@
#define TYPE_MAX7310 "max7310"
typedef struct MAX7310State MAX7310State;
-#define MAX7310(obj) OBJECT_CHECK(MAX7310State, (obj), TYPE_MAX7310)
+DECLARE_INSTANCE_CHECKER(MAX7310State, MAX7310,
+ TYPE_MAX7310)
struct MAX7310State {
I2CSlave parent_obj;