From patchwork Thu Nov 22 06:32:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Qiang X-Patchwork-Id: 1001557 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="h61GXwTr"; 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 430qSd2ncmz9s8J for ; Thu, 22 Nov 2018 17:35:29 +1100 (AEDT) Received: from localhost ([::1]:44239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPiaE-00046e-US for incoming@patchwork.ozlabs.org; Thu, 22 Nov 2018 01:35:26 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPiY0-0002xQ-7b for qemu-devel@nongnu.org; Thu, 22 Nov 2018 01:33:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPiXv-0001UD-85 for qemu-devel@nongnu.org; Thu, 22 Nov 2018 01:33:08 -0500 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]:42712) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gPiXu-0001Ma-WE for qemu-devel@nongnu.org; Thu, 22 Nov 2018 01:33:03 -0500 Received: by mail-pl1-x643.google.com with SMTP id x21-v6so8769703pln.9 for ; Wed, 21 Nov 2018 22:33:02 -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=tDsRhA4Rhxb3WuQkJhl2t/jzQQTw5kpTjtAZzgdf6mo=; b=h61GXwTr5LCOjtKARirLhTBlrqw2NOBhoWuiabV95lze/BIjXynFkAqxQ9MVF18v5C r9gDgsphYQGsDLBKOidDOVa+ggowt1phpSxpMFjx815jFxTlfSGq/13QxfHb1BUE49H4 FJUZr0Eku+dv4l4a2Bl4zC9VLu+xXclqQobvfJWrbQzEhxJ6iI06tPnE9K7YCYtdnM5C GyFZzOwnBruB/9a8mq9ZkhD+zPI+Dc9pq0sphC8RqBH15Q+fUr99xAdwEqAKy9BLurFO s2SjfoYWTO46TmN7wHbyWmbdLWQXDEMqP+odWSpOTwSVUAFz54x+S1oyRDaFS9acL+AL 0DFA== 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=tDsRhA4Rhxb3WuQkJhl2t/jzQQTw5kpTjtAZzgdf6mo=; b=tptrTHANltIJwcwnKfOo5ArrYTDDaQfrPFUWTB/QtC/fxME/ZKsmfmMh1/iyBolxeV ljgbuvDAuzASyv2xY9QgxMe60KTkISruWPijAIchUQe3W4UQsOeT1mIE/SeR8o0is5PC R9n5cYOT5YjkooMJr0QdmC/DFkcbdvE8V2ImhokpkP9LCY9MMb9P0zJ8xrn9FMdiW+qm nH8CyeoapUghl9pjy9RhIGOxikQp4L8vy3GSVs1sd4r2Mye6al67RVcqzBWTyxoWWs+x 44DmnTuyuGj2b+9xWAaf4nkLHaqEr5Dc0AakdGXecr+r/JPPyPcQHLk2ZAMQ1mWf1wuq nE8Q== X-Gm-Message-State: AA+aEWbR5Sc2FiLLuuVdBatEDfg6RRsJPZ5K/1q29hcnT2TSfth4lz95 D1+9UTFGtgB9IcF7dAyphjw= X-Google-Smtp-Source: AFSGD/XYA34JabKlVw2jrZIGTv61dRbSkrA5p1HUsQyf7fBHwoZUfHao/giDnfmp6ILr58dMtgkyQw== X-Received: by 2002:a17:902:9b93:: with SMTP id y19mr10123378plp.336.1542868381771; Wed, 21 Nov 2018 22:33:01 -0800 (PST) Received: from localhost.localdomain.localdomain ([103.129.255.252]) by smtp.gmail.com with ESMTPSA id e9sm36038875pff.5.2018.11.21.22.32.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Nov 2018 22:33:01 -0800 (PST) From: Li Qiang To: pbonzini@redhat.com, rth@twiddle.net, ehabkost@redhat.com, mst@redhat.com, marcel.apfelbaum@gmail.com, mark.cave-ayland@ilande.co.uk Date: Wed, 21 Nov 2018 22:32:50 -0800 Message-Id: <1542868372-2602-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::643 Subject: [Qemu-devel] [PATCH 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. Li Qiang (2): hw: pc: use TYPE_XXX instead of constant strings hw: vmmouse: drop DEFINE_PROP_PTR() hw/i386/pc.c | 11 ++++------- hw/i386/vmmouse.c | 17 +++++++++++------ hw/sparc64/sun4u.c | 2 +- include/hw/i386/pc.h | 7 +++++++ 4 files changed, 23 insertions(+), 14 deletions(-)