summaryrefslogtreecommitdiffstats
path: root/hw/input/lm832x.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/input/lm832x.c')
-rw-r--r--hw/input/lm832x.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/input/lm832x.c b/hw/input/lm832x.c
index aab94d2815..70245fd817 100644
--- a/hw/input/lm832x.c
+++ b/hw/input/lm832x.c
@@ -29,7 +29,8 @@
#define TYPE_LM8323 "lm8323"
typedef struct LM823KbdState LM823KbdState;
-#define LM8323(obj) OBJECT_CHECK(LM823KbdState, (obj), TYPE_LM8323)
+DECLARE_INSTANCE_CHECKER(LM823KbdState, LM8323,
+ TYPE_LM8323)
struct LM823KbdState {
I2CSlave parent_obj;