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: 10693567 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 B3FEE5A4 for ; Thu, 22 Nov 2018 06:35:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A9F242C57E for ; Thu, 22 Nov 2018 06:35:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9E6992C59A; Thu, 22 Nov 2018 06:35:44 +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 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 4D0A62C57E for ; Thu, 22 Nov 2018 06:35:44 +0000 (UTC) Received: from localhost ([::1]:44245 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPiaV-0004Vs-Ij for patchwork-qemu-devel@patchwork.kernel.org; Thu, 22 Nov 2018 01:35:43 -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+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. 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(-)