[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 19/30] virtio-rng: QOM realize preparations
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH 19/30] virtio-rng: QOM realize preparations |
Date: |
Fri, 29 Nov 2013 11:17:31 +0100 |
From: Andreas Färber <address@hidden>
Rename qdev -> dev because that's what realize's argument is called by
convention. No need to keep more "qdev" around than necessary.
Signed-off-by: Andreas Färber <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
hw/virtio/virtio-rng.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/hw/virtio/virtio-rng.c b/hw/virtio/virtio-rng.c
index 42ca568..9e2a66a 100644
--- a/hw/virtio/virtio-rng.c
+++ b/hw/virtio/virtio-rng.c
@@ -135,8 +135,8 @@ static void check_rate_limit(void *opaque)
static int virtio_rng_device_init(VirtIODevice *vdev)
{
- DeviceState *qdev = DEVICE(vdev);
- VirtIORNG *vrng = VIRTIO_RNG(vdev);
+ DeviceState *dev = DEVICE(vdev);
+ VirtIORNG *vrng = VIRTIO_RNG(dev);
Error *local_err = NULL;
if (!vrng->conf.period_ms > 0) {
@@ -148,12 +148,12 @@ static int virtio_rng_device_init(VirtIODevice *vdev)
if (vrng->conf.rng == NULL) {
vrng->conf.default_backend = RNG_RANDOM(object_new(TYPE_RNG_RANDOM));
- object_property_add_child(OBJECT(qdev),
+ object_property_add_child(OBJECT(dev),
"default-backend",
OBJECT(vrng->conf.default_backend),
NULL);
- object_property_set_link(OBJECT(qdev),
+ object_property_set_link(OBJECT(dev),
OBJECT(vrng->conf.default_backend),
"rng", NULL);
}
@@ -184,7 +184,7 @@ static int virtio_rng_device_init(VirtIODevice *vdev)
timer_mod(vrng->rate_limit_timer,
qemu_clock_get_ms(QEMU_CLOCK_VIRTUAL) +
vrng->conf.period_ms);
- register_savevm(qdev, "virtio-rng", -1, 1, virtio_rng_save,
+ register_savevm(dev, "virtio-rng", -1, 1, virtio_rng_save,
virtio_rng_load, vrng);
return 0;
--
1.8.3.1
- [Qemu-devel] [PATCH 09/30] virtio-scsi: switch exit callback to VirtioDeviceClass, (continued)
- [Qemu-devel] [PATCH 09/30] virtio-scsi: switch exit callback to VirtioDeviceClass, Paolo Bonzini, 2013/11/29
- [Qemu-devel] [PATCH 10/30] virtio-balloon: switch exit callback to VirtioDeviceClass, Paolo Bonzini, 2013/11/29
- [Qemu-devel] [PATCH 11/30] virtio-rng: switch exit callback to VirtioDeviceClass, Paolo Bonzini, 2013/11/29
- [Qemu-devel] [PATCH 12/30] virtio-pci: add device_unplugged callback, Paolo Bonzini, 2013/11/29
- [Qemu-devel] [PATCH 13/30] virtio-blk-dataplane: Improve error reporting, Paolo Bonzini, 2013/11/29
- [Qemu-devel] [PATCH 14/30] virtio-9p: QOM realize preparations, Paolo Bonzini, 2013/11/29
- [Qemu-devel] [PATCH 15/30] virtio-blk: QOM realize preparations, Paolo Bonzini, 2013/11/29
- [Qemu-devel] [PATCH 16/30] virtio-serial: QOM realize preparations, Paolo Bonzini, 2013/11/29
- [Qemu-devel] [PATCH 17/30] virtio-net: QOM realize preparations, Paolo Bonzini, 2013/11/29
- [Qemu-devel] [PATCH 18/30] virtio-balloon: QOM realize preparations, Paolo Bonzini, 2013/11/29
- [Qemu-devel] [PATCH 19/30] virtio-rng: QOM realize preparations,
Paolo Bonzini <=
- [Qemu-devel] [PATCH 20/30] virtio-scsi: QOM realize preparations, Paolo Bonzini, 2013/11/29
- [Qemu-devel] [PATCH 21/30] virtio: Start converting VirtioDevice to QOM realize, Paolo Bonzini, 2013/11/29
- [Qemu-devel] [PATCH 22/30] virtio-9p: Convert to QOM realize, Paolo Bonzini, 2013/11/29
- [Qemu-devel] [PATCH 23/30] virtio-blk: Convert to QOM realize, Paolo Bonzini, 2013/11/29
- [Qemu-devel] [PATCH 24/30] virtio-serial: Convert to QOM realize, Paolo Bonzini, 2013/11/29
- [Qemu-devel] [PATCH 25/30] virtio-net: Convert to QOM realize, Paolo Bonzini, 2013/11/29
- [Qemu-devel] [PATCH 26/30] virtio-balloon: Convert to QOM realize, Paolo Bonzini, 2013/11/29
- [Qemu-devel] [PATCH 27/30] virtio-rng: Convert to QOM realize, Paolo Bonzini, 2013/11/29