diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2011-02-24 11:14:12 +0530 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-02-24 11:25:38 -0600 |
commit | a43f9c90c9129d1f28e473277abf793d0caed897 (patch) | |
tree | df9fe4f975576a724b813437644061dfbe88a237 /hw/virtio-serial.h | |
parent | 61a11c98b77bb27dda7b2fb7004371bf0437ae5d (diff) | |
download | qemu-a43f9c90c9129d1f28e473277abf793d0caed897.zip qemu-a43f9c90c9129d1f28e473277abf793d0caed897.tar.gz qemu-a43f9c90c9129d1f28e473277abf793d0caed897.tar.bz2 |
virtio-serial: kill VirtIOSerialDevice
VirtIOSerialDevice is like VirtIOSerialPort with just the first two
fields, which makes it pretty pointless. Using VirtIOSerialPort
directly works equally well and is less confusing.
[Amit: - rebase
- rename 'dev' to 'port' in function params in virtio-serial.h ]
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/virtio-serial.h')
-rw-r--r-- | hw/virtio-serial.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/hw/virtio-serial.h b/hw/virtio-serial.h index a308196..8cb9fbe 100644 --- a/hw/virtio-serial.h +++ b/hw/virtio-serial.h @@ -62,11 +62,6 @@ typedef struct VirtIOSerialBus VirtIOSerialBus; typedef struct VirtIOSerialPort VirtIOSerialPort; typedef struct VirtIOSerialPortInfo VirtIOSerialPortInfo; -typedef struct VirtIOSerialDevice { - DeviceState qdev; - VirtIOSerialPortInfo *info; -} VirtIOSerialDevice; - /* * This is the state that's shared between all the ports. Some of the * state is configurable via command-line options. Some of it can be @@ -136,12 +131,12 @@ struct VirtIOSerialPortInfo { * The per-port (or per-app) init function that's called when a * new device is found on the bus. */ - int (*init)(VirtIOSerialDevice *dev); + int (*init)(VirtIOSerialPort *port); /* * Per-port exit function that's called when a port gets * hot-unplugged or removed. */ - int (*exit)(VirtIOSerialDevice *dev); + int (*exit)(VirtIOSerialPort *port); /* Callbacks for guest events */ /* Guest opened device. */ |