]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - hw/char/lm32_uart.c
Move QOM typedefs and add missing includes
[thirdparty/qemu.git] / hw / char / lm32_uart.c
index b0b10928891210cd5ca4b1aaa96feb1bea98917c..8aff78592b1b7e5835dedd52d13ff579e07d36bd 100644 (file)
@@ -31,6 +31,7 @@
 #include "chardev/char-fe.h"
 #include "qemu/error-report.h"
 #include "qemu/module.h"
+#include "qom/object.h"
 
 enum {
     R_RXTX = 0,
@@ -94,6 +95,7 @@ enum {
 };
 
 #define TYPE_LM32_UART "lm32-uart"
+typedef struct LM32UartState LM32UartState;
 #define LM32_UART(obj) OBJECT_CHECK(LM32UartState, (obj), TYPE_LM32_UART)
 
 struct LM32UartState {
@@ -105,7 +107,6 @@ struct LM32UartState {
 
     uint32_t regs[R_MAX];
 };
-typedef struct LM32UartState LM32UartState;
 
 static void uart_update_irq(LM32UartState *s)
 {