]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
hw/char/serial: Remove SerialState from "qemu/typedefs.h"
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 11 Jan 2019 14:08:50 +0000 (15:08 +0100)
committerThomas Huth <thuth@redhat.com>
Tue, 22 Jan 2019 04:14:33 +0000 (05:14 +0100)
Files requiring SerialState already include "hw/char/serial.h".

To clean "qemu/typedefs.h", move the declaration to "hw/char/serial.h"
(removing the forward declaration).

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
include/hw/char/serial.h
include/qemu/typedefs.h

index 0acfbbc382634953aa5ada2d064644b92c49ad66..abd5cf71a9146797cb1b83ffc0322b1fdd34aba8 100644 (file)
@@ -35,7 +35,7 @@
 
 #define UART_FIFO_LENGTH    16      /* 16550A Fifo Length */
 
-struct SerialState {
+typedef struct SerialState {
     uint16_t divider;
     uint8_t rbr; /* receive register */
     uint8_t thr; /* transmit holding register */
@@ -77,7 +77,7 @@ struct SerialState {
 
     QEMUTimer *modem_status_poll;
     MemoryRegion io;
-};
+} SerialState;
 
 extern const VMStateDescription vmstate_serial;
 extern const MemoryRegionOps serial_io_ops;
index d17f289650af3a143e981b83db66c454f4177ae9..5d8b153344a63ee1dfc6f46e18f9a476063d7040 100644 (file)
@@ -103,7 +103,6 @@ typedef struct QObject QObject;
 typedef struct QString QString;
 typedef struct RAMBlock RAMBlock;
 typedef struct Range Range;
-typedef struct SerialState SerialState;
 typedef struct SHPCDevice SHPCDevice;
 typedef struct SSIBus SSIBus;
 typedef struct uWireSlave uWireSlave;