From patchwork Tue Nov 27 10:02:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Qiang X-Patchwork-Id: 10700015 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 18AA61869 for ; Tue, 27 Nov 2018 10:04:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0912B2A4CA for ; Tue, 27 Nov 2018 10:04:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F187D2A96C; Tue, 27 Nov 2018 10:04:16 +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 A0FD72A4CA for ; Tue, 27 Nov 2018 10:04:16 +0000 (UTC) Received: from localhost ([::1]:41079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRaE3-0002pC-RZ for patchwork-qemu-devel@patchwork.kernel.org; Tue, 27 Nov 2018 05:04:15 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRaC9-0007jf-Jx for qemu-devel@nongnu.org; Tue, 27 Nov 2018 05:02:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRaC3-0007RU-S4 for qemu-devel@nongnu.org; Tue, 27 Nov 2018 05:02:15 -0500 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]:34662) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gRaC3-0007RK-Kt for qemu-devel@nongnu.org; Tue, 27 Nov 2018 05:02:11 -0500 Received: by mail-pg1-x542.google.com with SMTP id 17so7639031pgg.1 for ; Tue, 27 Nov 2018 02:02:11 -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=t0gA76bJrDO1gw5V9jgcIo9gNkjTrAifa4I93gVlcSM=; b=C9cBIOc5XGLuH43IsnjofJJT8Ef4gm7xmYAHrQjAjzO3qa+UdoMPLuku2He8A9pjDZ L6iWQUGh6/k2TqMD5w29YrLt1g7+UNtlaQyl401N3/F6gk55I/EhKtMIzdqEWKVHT9fr lLsaoU7wBGXfOrIGUTLcHVWwkiBXdQJtBpqdWF9HtgvozvI0DKxLOjpEadEKy6sVLESJ L4p1EQ9llI7zuHS2V+HpDgAP9/MjC4jmUrXIJ3/UZcRgozOcT2STtjMQOKBqzSmNd+j7 LypBRdDgI19E9OizJD+Eq6MrkSZofdgdApc3tHrg4u4v1bLcgpLQBLS118we84P+0j+/ sZ/w== 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=t0gA76bJrDO1gw5V9jgcIo9gNkjTrAifa4I93gVlcSM=; b=C/R212rzcfZKEMs7L5ZFKUdd2qeCuOAc1Vx1Kg/gTR/ArHNrU1u3WzAQabYndwYlgG Sb1eYv0ZIbIgbZeykiPZpWxkHPEcX0RUapyxacPIWzq66dtIODiLssIAWyIVzNkKRPRa E4TjDbWMQ/HUrzjlRklz/cpi7JXkL+ZQnNdK0DPTcDGt8Y2Kk9MIAAcpa3DEP6fMfuMH 3pEOHXxKNTwBgEk49wvoF5/ipL+HjQ38Ix+xTgwCtP7gyOIjPQCU0+MgL2f+oQzhTqvt HZZFdNEFq5zCxmSYWeeL59GzT7EgMEEr5V+7aS4hcImboWprLob0x9AETQrQ4w+c/Iep odYg== X-Gm-Message-State: AA+aEWYjPjcLzzPiAxIIurc+Y472hd0n87WWR+A+TK12y5xSgB34asep 2xSNooWwK3A5TIDU3aCpqO0= X-Google-Smtp-Source: AFSGD/VIjxYzP66yBohO/3ZxESYd4micGA0m9e2JnnQkYZexv6HcHA3hJpU+MtHmCCjMGoQuKNV1kw== X-Received: by 2002:a65:5387:: with SMTP id x7mr28834613pgq.412.1543312930617; Tue, 27 Nov 2018 02:02:10 -0800 (PST) Received: from localhost.localdomain.localdomain ([103.129.255.252]) by smtp.gmail.com with ESMTPSA id u78sm5499330pfi.2.2018.11.27.02.02.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Nov 2018 02:02:10 -0800 (PST) From: Li Qiang To: pbonzini@redhat.com, rth@twiddle.net, armbru@redhat.com, ehabkost@redhat.com, mst@redhat.com, marcel.apfelbaum@gmail.com, mark.cave-ayland@ilande.co.uk Date: Tue, 27 Nov 2018 02:02:01 -0800 Message-Id: <1543312923-3074-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::542 Subject: [Qemu-devel] [PATCH v2 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: Li Qiang , 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 v1: fix some issues per Markus' review Li Qiang (2): hw: pc: use TYPE_XXX instead of constant strings hw: vmmouse: drop DEFINE_PROP_PTR() hw/i386/pc.c | 9 +++++---- hw/i386/vmmouse.c | 18 +++++++++++------- include/hw/i386/pc.h | 3 +++ 3 files changed, 19 insertions(+), 11 deletions(-)