From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=42414 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pl6Gz-0007Oj-6J for qemu-devel@nongnu.org; Thu, 03 Feb 2011 15:59:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pl6Gp-0004cW-3u for qemu-devel@nongnu.org; Thu, 03 Feb 2011 15:59:15 -0500 Received: from mail-pv0-f173.google.com ([74.125.83.173]:59957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pl6Go-0004cN-QA for qemu-devel@nongnu.org; Thu, 03 Feb 2011 15:59:15 -0500 Received: by pvh11 with SMTP id 11so357926pvh.4 for ; Thu, 03 Feb 2011 12:59:14 -0800 (PST) MIME-Version: 1.0 From: Blue Swirl Date: Thu, 3 Feb 2011 20:58:53 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: [Qemu-devel] [PATCH 01/10] vmware_vga: refactor device creation List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Turn vmsvga_init into an inline function. Signed-off-by: Blue Swirl --- hw/vmware_vga.c | 5 ----- hw/vmware_vga.h | 5 ++++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c index 6c59053..4656767 100644 --- a/hw/vmware_vga.c +++ b/hw/vmware_vga.c @@ -1309,11 +1309,6 @@ static int pci_vmsvga_initfn(PCIDevice *dev) return 0; } -void pci_vmsvga_init(PCIBus *bus) -{ - pci_create_simple(bus, -1, "vmware-svga"); -} - static PCIDeviceInfo vmsvga_info = { .qdev.name = "vmware-svga", .qdev.size = sizeof(struct pci_vmsvga_state_s), diff --git a/hw/vmware_vga.h b/hw/vmware_vga.h index 2e0813c..e7bcb22 100644 --- a/hw/vmware_vga.h +++ b/hw/vmware_vga.h @@ -4,6 +4,9 @@ #include "qemu-common.h" /* vmware_vga.c */ -void pci_vmsvga_init(PCIBus *bus); +static inline void pci_vmsvga_init(PCIBus *bus) +{ + pci_create_simple(bus, -1, "vmware-svga"); +} #endif -- 1.6.2.4