aboutsummaryrefslogtreecommitdiff
path: root/hw/display/ssd0303.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/display/ssd0303.c')
-rw-r--r--hw/display/ssd0303.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/display/ssd0303.c b/hw/display/ssd0303.c
index 8804567c1f..0378573a42 100644
--- a/hw/display/ssd0303.c
+++ b/hw/display/ssd0303.c
@@ -48,7 +48,8 @@ enum ssd0303_cmd {
#define TYPE_SSD0303 "ssd0303"
typedef struct ssd0303_state ssd0303_state;
-#define SSD0303(obj) OBJECT_CHECK(ssd0303_state, (obj), TYPE_SSD0303)
+DECLARE_INSTANCE_CHECKER(ssd0303_state, SSD0303,
+ TYPE_SSD0303)
struct ssd0303_state {
I2CSlave parent_obj;