diff options
author | Gonglei <arei.gonglei@huawei.com> | 2014-10-07 14:33:22 +0800 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2014-10-15 05:03:15 +0200 |
commit | b8c9cd5c8cf2a105dab8ac3e5799e3b27bfda9d5 (patch) | |
tree | 4b5ac9fba4231b7b99a87a9e2021e1fdfd6e12c8 /hw | |
parent | 8074264203db3351a4017ea0371c2c5eeb86df82 (diff) |
qdev: Set the object property's description to the qdev property's.
Set all static qdev properties' descriptions to object property's
description.
Cc: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/core/qdev.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/core/qdev.c b/hw/core/qdev.c index 7685e0728b..a1e9247772 100644 --- a/hw/core/qdev.c +++ b/hw/core/qdev.c @@ -826,6 +826,11 @@ void qdev_property_add_static(DeviceState *dev, Property *prop, error_propagate(errp, local_err); return; } + + object_property_set_description(obj, prop->name, + prop->info->description, + &error_abort); + if (prop->qtype == QTYPE_NONE) { return; } |