summaryrefslogtreecommitdiffstats
path: root/hw/gpio/gpio_key.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/gpio/gpio_key.c')
-rw-r--r--hw/gpio/gpio_key.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/gpio/gpio_key.c b/hw/gpio/gpio_key.c
index 2500a23c6e..86aa78aae4 100644
--- a/hw/gpio/gpio_key.c
+++ b/hw/gpio/gpio_key.c
@@ -32,7 +32,8 @@
#define TYPE_GPIOKEY "gpio-key"
typedef struct GPIOKEYState GPIOKEYState;
-#define GPIOKEY(obj) OBJECT_CHECK(GPIOKEYState, (obj), TYPE_GPIOKEY)
+DECLARE_INSTANCE_CHECKER(GPIOKEYState, GPIOKEY,
+ TYPE_GPIOKEY)
#define GPIO_KEY_LATENCY 100 /* 100ms */
struct GPIOKEYState {