From patchwork Thu Nov 29 04:52:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Qiang X-Patchwork-Id: 10703905 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 609291057 for ; Thu, 29 Nov 2018 04:54:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 565652E6B7 for ; Thu, 29 Nov 2018 04:54:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A2232E8C3; Thu, 29 Nov 2018 04:54:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, SUBJ_OBFU_PUNCT_FEW autolearn=ham version=3.3.1 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 mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EA0742E6B7 for ; Thu, 29 Nov 2018 04:54:41 +0000 (UTC) Received: from localhost ([::1]:52272 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSELZ-0006HY-4Y for patchwork-qemu-devel@patchwork.kernel.org; Wed, 28 Nov 2018 23:54:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSEK7-0005FX-LK for qemu-devel@nongnu.org; Wed, 28 Nov 2018 23:53:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSEK4-0007L3-CN for qemu-devel@nongnu.org; Wed, 28 Nov 2018 23:53:11 -0500 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]:36290) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSEK4-0007KI-1n for qemu-devel@nongnu.org; Wed, 28 Nov 2018 23:53:08 -0500 Received: by mail-pf1-x443.google.com with SMTP id b85so413701pfc.3 for ; Wed, 28 Nov 2018 20:53:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=K8DJARr6sX5qzZCtUQnz6eAgoC2fO7RCXvryMV/QvLk=; b=BkOfqIPNPqov4cMST3Uu17d0Bf19AkRkb3hrLw1vCYONFUU7FV8UXnTB6Q/v/vBkFA xzQr0M09Yfqgw+cncGU/rno+s9nOzJqLZCcXsG7JN/BDhhpR4fIidvX/UPxU4Xv3y4Ew iHiKgqOcXl9do4R4KmpUSBXTy6EjGKMiafQTNPK3rhJ9p0ITRU1Z+ThVwluzw6ZDjScI 4EqmQmw1+6OVKsO2mI97iI/hWiQhoAIIFnilYonHuKxunrLKtTpnfCrZSmY/WQvawx9s 8Ur2ZavllCKvaXT6uNF57IIa+UP8kB1HAO9vSVo3w30bILfBKxQRu54cBnPnmWtC3NFG t15Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=K8DJARr6sX5qzZCtUQnz6eAgoC2fO7RCXvryMV/QvLk=; b=i/i8UZN5GIXjyC/LVnYxVE1pmBeg0B8hKOMlbVeT2IlYa7eGsImnVuafHtbr2PLUCm N5bhiE2ZJIWnxsPZ/E1eTM9QciwLkScIjVI/T7kK8FcIUAKomeCX46FofaBGd2Bge/lD ikjeVMsBqM1N4ITKr+aidnTbIaZqKJ1B1AUY+H7zHRpp5aWf4j0SamX6CuwWkej1QxqN IJhtGDl1whUlklQ8kq1dOO+NZjE8mIUl8KW3l//rXusU58fODfj6Vo+MtJ3Q2aOhVuei qYs3uylRYfx7aDQ7CdbDya0YCqguBZ5/88LB6m5xPhA6dswXQsevNP44hcdt9BY5CZ7e LRBA== X-Gm-Message-State: AA+aEWbwPwnRiMsUMSoVCdFFQaJml4FwvVu/w9ZDOriL0VETk0fEi2no ruzdg+4nZGOZ/IZmpEDQFFo= X-Google-Smtp-Source: AFSGD/U3TOJqwWWoFVy7CxDw8k/yanQNxnoYrFgiqiG0PtGRFp7SN8opk499giM6Cv212mkwcHho3Q== X-Received: by 2002:a62:8a51:: with SMTP id y78mr35146pfd.35.1543467187032; Wed, 28 Nov 2018 20:53:07 -0800 (PST) Received: from localhost.localdomain.localdomain ([103.129.255.252]) by smtp.gmail.com with ESMTPSA id k26sm576747pgf.65.2018.11.28.20.53.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Nov 2018 20:53:06 -0800 (PST) From: Li Qiang To: mst@redhat.com, marcel.apfelbaum@gmail.com, pbonzini@redhat.com, rth@twiddle.net, ehabkost@redhat.com Date: Wed, 28 Nov 2018 20:52:10 -0800 Message-Id: <1543467132-2873-1-git-send-email-liq3ea@gmail.com> X-Mailer: git-send-email 1.8.3.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::443 Subject: [Qemu-devel] [PATCH v3 0/2] hw: vmmouse: use link property instead of DEFINE_PROP_PTR 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: darren.kenny@oracle.com, Li Qiang , armbru@redhat.com, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP According https://wiki.qemu.org/Contribute/BiteSizedTasks the 'DEFINE_PROP_PTR' should be replaced by QOM link property. The first patch replace constant strings with TYPE_XXXX and move some definition to pc.h header file so that the second patch can work. Change since v2: detail commit message Change since v1: fix some issues per Markus' review Li Qiang (2): hw: pc: use TYPE_XXX instead of constant strings hw: vmmouse: Use link instead of pointer property hw/i386/pc.c | 9 +++++---- hw/i386/vmmouse.c | 18 +++++++++++------- include/hw/i386/pc.h | 3 +++ 3 files changed, 19 insertions(+), 11 deletions(-) Reviewed-by: Michael S. Tsirkin