From patchwork Fri Oct 12 08:30:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mao Zhongyi X-Patchwork-Id: 982898 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42Wh0W2R1yz9s1c for ; Fri, 12 Oct 2018 19:32:27 +1100 (AEDT) Received: from localhost ([::1]:38958 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAsrw-0004n9-Vy for incoming@patchwork.ozlabs.org; Fri, 12 Oct 2018 04:32:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAsq9-00047w-2E for qemu-devel@nongnu.org; Fri, 12 Oct 2018 04:30:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAsq5-0008KE-L1 for qemu-devel@nongnu.org; Fri, 12 Oct 2018 04:30:32 -0400 Received: from cmccmta1.chinamobile.com ([221.176.66.79]:38192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAsq3-0008Fw-PL for qemu-devel@nongnu.org; Fri, 12 Oct 2018 04:30:28 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.17]) by rmmx-syy-dmz-app04-12004 (RichMail) with SMTP id 2ee45bc05b9b130-1d1e3; Fri, 12 Oct 2018 16:30:20 +0800 (CST) X-RM-TRANSID: 2ee45bc05b9b130-1d1e3 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[112.25.154.149]) by rmsmtp-syy-appsvr09-12009 (RichMail) with SMTP id 2ee95bc05b968fe-80061; Fri, 12 Oct 2018 16:30:20 +0800 (CST) X-RM-TRANSID: 2ee95bc05b968fe-80061 From: Mao Zhongyi To: qemu-devel@nongnu.org Date: Fri, 12 Oct 2018 16:30:05 +0800 Message-Id: <20181012083008.29027-1-maozhongyi@cmss.chinamobile.com> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 221.176.66.79 Subject: [Qemu-devel] [PATCH v2 0/3] use object link instead of qdev property X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Jan Kiszka , Gerd Hoffmann , Mao Zhongyi Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" According to qdev-properties.h, properties of pointer type should be avoid, so convert qdev property to link, Whilst we are here, also update some hardcoded strings with already defineded macros. v2: -removed the patch1 -removed the TYPE_name in VMStateDescription.name Cc: Jan Kiszka Cc: Peter Maydell Cc: Gerd Hoffmann Cc: Peter Maydell Mao Zhongyi (3): audio: use TYPE_WM8750 instead of a hardcoded string audio: use object link instead of qdev property to pass wm8750 reference audio: use TYPE_MV88W8618_AUDIO instead of hardcoded string hw/arm/musicpal.c | 5 +++-- hw/audio/marvell_88w8618.c | 14 ++++++-------- 2 files changed, 9 insertions(+), 10 deletions(-)