From: Gonglei <arei.gong...@huawei.com> Set all static qdev properties' descriptions to object property's description.
Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: Michael S. Tsirkin <m...@redhat.com> Cc: Markus Armbruster <arm...@redhat.com> Signed-off-by: Gonglei <arei.gong...@huawei.com> --- hw/core/qdev.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hw/core/qdev.c b/hw/core/qdev.c index 2b42d5b..e11510c 100644 --- a/hw/core/qdev.c +++ b/hw/core/qdev.c @@ -789,6 +789,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; } -- 2.0.4