]> git.proxmox.com Git - mirror_qemu.git/commitdiff
virtio-rng: use standard-headers
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 16 Feb 2015 21:36:15 +0000 (22:36 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 26 Feb 2015 12:04:04 +0000 (13:04 +0100)
Drop duplicated code.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com>
include/hw/virtio/virtio-rng.h

index 14e85a5a3a0cda4eee903fba773361906c6ed1cf..7702ff474971370e3cd5bb6046eb737b604e03af 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "sysemu/rng.h"
 #include "sysemu/rng-random.h"
+#include "standard-headers/linux/virtio_rng.h"
 
 #define TYPE_VIRTIO_RNG "virtio-rng-device"
 #define VIRTIO_RNG(obj) \
@@ -21,9 +22,6 @@
 #define VIRTIO_RNG_GET_PARENT_CLASS(obj) \
         OBJECT_GET_PARENT_CLASS(obj, TYPE_VIRTIO_RNG)
 
-/* The Virtio ID for the virtio rng device */
-#define VIRTIO_ID_RNG    4
-
 struct VirtIORNGConf {
     RngBackend *rng;
     uint64_t max_bytes;