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: 1003737 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=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="C9cBIOc5"; dkim-atps=neutral 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 433zrC1f9qz9s29 for ; Tue, 27 Nov 2018 21:03:23 +1100 (AEDT) Received: from localhost ([::1]:41074 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRaDA-0007sb-P7 for incoming@patchwork.ozlabs.org; Tue, 27 Nov 2018 05:03:20 -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+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" 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(-)