]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - hw/gpio/gpio_key.c
Move QOM typedefs and add missing includes
[thirdparty/qemu.git] / hw / gpio / gpio_key.c
index 46bbd427720d27b66d35f2bd52ea92eacdd98e96..2500a23c6e3f90c5e2e8c33f58ed400fc91b0fa1 100644 (file)
 #include "migration/vmstate.h"
 #include "qemu/module.h"
 #include "qemu/timer.h"
+#include "qom/object.h"
 
 #define TYPE_GPIOKEY "gpio-key"
+typedef struct GPIOKEYState GPIOKEYState;
 #define GPIOKEY(obj) OBJECT_CHECK(GPIOKEYState, (obj), TYPE_GPIOKEY)
 #define GPIO_KEY_LATENCY 100 /* 100ms */
 
-typedef struct GPIOKEYState {
+struct GPIOKEYState {
     SysBusDevice parent_obj;
 
     QEMUTimer *timer;
     qemu_irq irq;
-} GPIOKEYState;
+};
 
 static const VMStateDescription vmstate_gpio_key = {
     .name = "gpio-key",