diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2019-01-11 15:08:50 +0100 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2019-01-22 05:14:33 +0100 |
commit | 1451b4044328230d3a10fb05907624b10ad6679e (patch) | |
tree | 7f117901894fd2ee94260b0882d44deff403ac59 /include/hw | |
parent | bc8c49d34d280407d7cd5ee1445d4b5772ef3b4c (diff) |
hw/char/serial: Remove SerialState from "qemu/typedefs.h"
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>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/char/serial.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hw/char/serial.h b/include/hw/char/serial.h index 0acfbbc382..abd5cf71a9 100644 --- a/include/hw/char/serial.h +++ b/include/hw/char/serial.h @@ -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; |