From patchwork Tue Sep 30 03:02:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gonglei (Arei)" X-Patchwork-Id: 394725 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 2F505140111 for ; Tue, 30 Sep 2014 13:05:30 +1000 (EST) Received: from localhost ([::1]:40296 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYnkm-0006GZ-AO for incoming@patchwork.ozlabs.org; Mon, 29 Sep 2014 23:05:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYniw-0002nJ-No for qemu-devel@nongnu.org; Mon, 29 Sep 2014 23:03:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYnin-0000Wc-2a for qemu-devel@nongnu.org; Mon, 29 Sep 2014 23:03:34 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:22051) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYnim-0000Rs-FV for qemu-devel@nongnu.org; Mon, 29 Sep 2014 23:03:25 -0400 Received: from 172.24.2.119 (EHLO szxeml402-hub.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CAD27236; Tue, 30 Sep 2014 11:03:04 +0800 (CST) Received: from localhost (10.177.19.102) by szxeml402-hub.china.huawei.com (10.82.67.32) with Microsoft SMTP Server id 14.3.158.1; Tue, 30 Sep 2014 11:02:58 +0800 From: To: Date: Tue, 30 Sep 2014 11:02:37 +0800 Message-ID: <1412046159-5144-4-git-send-email-arei.gonglei@huawei.com> X-Mailer: git-send-email 1.7.3.1.msysgit.0 In-Reply-To: <1412046159-5144-1-git-send-email-arei.gonglei@huawei.com> References: <1412046159-5144-1-git-send-email-arei.gonglei@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.177.19.102] X-CFilter-Loop: Reflected X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 119.145.14.65 Cc: weidong.huang@huawei.com, aliguori@amazon.com, mst@redhat.com, armbru@redhat.com, luonengjun@huawei.com, peter.huangpeng@huawei.com, lcapitulino@redhat.com, Gonglei , stefanha@redhat.com, pbonzini@redhat.com, afaerber@suse.de Subject: [Qemu-devel] [PATCH v4 3/5] qdev: set the object property's description to the qdev property's. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Gonglei Set all static qdev properties' descriptions to object property's description. Cc: Paolo Bonzini Cc: Michael S. Tsirkin Cc: Markus Armbruster Signed-off-by: Gonglei --- 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; }