qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 45/47] qdev: Set the object property's description to


From: Andreas Färber
Subject: [Qemu-devel] [PULL 45/47] qdev: Set the object property's description to the qdev property's.
Date: Wed, 15 Oct 2014 05:09:19 +0200

From: Gonglei <address@hidden>

Set all static qdev properties' descriptions to object property's
description.

Cc: Markus Armbruster <address@hidden>
Signed-off-by: Gonglei <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Andreas Färber <address@hidden>
---
 hw/core/qdev.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/hw/core/qdev.c b/hw/core/qdev.c
index 7685e07..a1e9247 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;
     }
-- 
1.8.4.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]