summaryrefslogtreecommitdiffstats
path: root/include/hw/qdev-properties.h
diff options
context:
space:
mode:
authorEduardo Habkost2020-12-11 23:05:07 +0100
committerEduardo Habkost2020-12-15 16:02:07 +0100
commit395012756c15ce0a9f73c098d8eebb0fe3c9a7e6 (patch)
tree9ed5f1b42cbb69e8c889bc18701a545ca8feb477 /include/hw/qdev-properties.h
parentqdev: Make qdev_get_prop_ptr() get Object* arg (diff)
downloadqemu-395012756c15ce0a9f73c098d8eebb0fe3c9a7e6.tar.gz
qemu-395012756c15ce0a9f73c098d8eebb0fe3c9a7e6.tar.xz
qemu-395012756c15ce0a9f73c098d8eebb0fe3c9a7e6.zip
qdev: Make qdev_find_global_prop() get Object* argument
Make the code more generic and not specific to TYPE_DEVICE. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20201211220529.2290218-11-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include/hw/qdev-properties.h')
-rw-r--r--include/hw/qdev-properties.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/qdev-properties.h b/include/hw/qdev-properties.h
index 0b92cfc761..7620095fed 100644
--- a/include/hw/qdev-properties.h
+++ b/include/hw/qdev-properties.h
@@ -305,7 +305,7 @@ void qdev_prop_set_enum(DeviceState *dev, const char *name, int value);
void *qdev_get_prop_ptr(Object *obj, Property *prop);
void qdev_prop_register_global(GlobalProperty *prop);
-const GlobalProperty *qdev_find_global_prop(DeviceState *dev,
+const GlobalProperty *qdev_find_global_prop(Object *obj,
const char *name);
int qdev_prop_check_globals(void);
void qdev_prop_set_globals(DeviceState *dev);