aboutsummaryrefslogtreecommitdiff
path: root/hw/rtc/twl92230.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/rtc/twl92230.c')
-rw-r--r--hw/rtc/twl92230.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/rtc/twl92230.c b/hw/rtc/twl92230.c
index d46f21430c..4f83eff5c3 100644
--- a/hw/rtc/twl92230.c
+++ b/hw/rtc/twl92230.c
@@ -35,7 +35,8 @@
#define TYPE_TWL92230 "twl92230"
typedef struct MenelausState MenelausState;
-#define TWL92230(obj) OBJECT_CHECK(MenelausState, (obj), TYPE_TWL92230)
+DECLARE_INSTANCE_CHECKER(MenelausState, TWL92230,
+ TYPE_TWL92230)
struct MenelausState {
I2CSlave parent_obj;