diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2020-12-11 17:05:27 -0500 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2020-12-18 15:20:18 -0500 |
commit | 1e198715e12ae86c4942a0a2d1df29beabccc295 (patch) | |
tree | 0fba01d5248f445fd928b0c1bd5f15d2589fbd43 /hw/block/xen-block.c | |
parent | 8f2aff643caad71c45c70da1af285e5a3330d518 (diff) | |
download | qemu-1e198715e12ae86c4942a0a2d1df29beabccc295.zip qemu-1e198715e12ae86c4942a0a2d1df29beabccc295.tar.gz qemu-1e198715e12ae86c4942a0a2d1df29beabccc295.tar.bz2 |
qdev: Rename qdev_get_prop_ptr() to object_field_prop_ptr()
The function will be moved to common QOM code, as it is not
specific to TYPE_DEVICE anymore.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Paul Durrant <paul@xen.org>
Message-Id: <20201211220529.2290218-31-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/block/xen-block.c')
-rw-r--r-- | hw/block/xen-block.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/block/xen-block.c b/hw/block/xen-block.c index bd1aef6..718d886 100644 --- a/hw/block/xen-block.c +++ b/hw/block/xen-block.c @@ -336,7 +336,7 @@ static void xen_block_get_vdev(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { Property *prop = opaque; - XenBlockVdev *vdev = qdev_get_prop_ptr(obj, prop); + XenBlockVdev *vdev = object_field_prop_ptr(obj, prop); char *str; switch (vdev->type) { @@ -396,7 +396,7 @@ static void xen_block_set_vdev(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { Property *prop = opaque; - XenBlockVdev *vdev = qdev_get_prop_ptr(obj, prop); + XenBlockVdev *vdev = object_field_prop_ptr(obj, prop); char *str, *p; const char *end; |