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 /backends/tpm | |
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 'backends/tpm')
-rw-r--r-- | backends/tpm/tpm_util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/tpm/tpm_util.c b/backends/tpm/tpm_util.c index 39b45fa..a6e6d3e 100644 --- a/backends/tpm/tpm_util.c +++ b/backends/tpm/tpm_util.c @@ -35,7 +35,7 @@ static void get_tpm(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { - TPMBackend **be = qdev_get_prop_ptr(obj, opaque); + TPMBackend **be = object_field_prop_ptr(obj, opaque); char *p; p = g_strdup(*be ? (*be)->id : ""); @@ -47,7 +47,7 @@ static void set_tpm(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { Property *prop = opaque; - TPMBackend *s, **be = qdev_get_prop_ptr(obj, prop); + TPMBackend *s, **be = object_field_prop_ptr(obj, prop); char *str; if (!visit_type_str(v, name, &str, errp)) { @@ -67,7 +67,7 @@ static void set_tpm(Object *obj, Visitor *v, const char *name, void *opaque, static void release_tpm(Object *obj, const char *name, void *opaque) { Property *prop = opaque; - TPMBackend **be = qdev_get_prop_ptr(obj, prop); + TPMBackend **be = object_field_prop_ptr(obj, prop); if (*be) { tpm_backend_reset(*be); |