From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtH5e-00063f-QY for qemu-devel@nongnu.org; Sun, 30 Jun 2013 08:50:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UtH5d-0001Ho-U1 for qemu-devel@nongnu.org; Sun, 30 Jun 2013 08:50:50 -0400 Received: from cantor2.suse.de ([195.135.220.15]:49285 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtH5d-0001Hj-Ma for qemu-devel@nongnu.org; Sun, 30 Jun 2013 08:50:49 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Sun, 30 Jun 2013 14:50:43 +0200 Message-Id: <1372596643-25168-1-git-send-email-afaerber@suse.de> In-Reply-To: <591685fc82b204def83305aee0dfa37cebcb89cd.1372055322.git.peter.crosthwaite@xilinx.com> References: <591685fc82b204def83305aee0dfa37cebcb89cd.1372055322.git.peter.crosthwaite@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH qom-next] misc/pci-testdev: QOM parent field cleanup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Peter Crosthwaite , =?UTF-8?q?Andreas=20F=C3=A4rber?= , "Michael S. Tsirkin" Rename to parent_obj and fix any fallout. Signed-off-by: Andreas F=C3=A4rber --- hw/misc/pci-testdev.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/misc/pci-testdev.c b/hw/misc/pci-testdev.c index 153603e..087ec3b 100644 --- a/hw/misc/pci-testdev.c +++ b/hw/misc/pci-testdev.c @@ -76,7 +76,10 @@ enum { #define IOTEST_ACCESS_WIDTH (sizeof(uint8_t)) =20 typedef struct PCITestDevState { - PCIDevice dev; + /*< private >*/ + PCIDevice parent_obj; + /*< public >*/ + MemoryRegion mmio; MemoryRegion portio; IOTest *tests; @@ -237,7 +240,7 @@ static int pci_testdev_init(PCIDevice *pci_dev) char *name; int r, i; =20 - pci_conf =3D d->dev.config; + pci_conf =3D pci_dev->config; =20 pci_conf[PCI_INTERRUPT_PIN] =3D 0; /* no interrupt pin */ =20 @@ -245,8 +248,8 @@ static int pci_testdev_init(PCIDevice *pci_dev) "pci-testdev-mmio", IOTEST_MEMSIZE * 2); memory_region_init_io(&d->portio, &pci_testdev_pio_ops, d, "pci-testdev-portio", IOTEST_IOSIZE * 2); - pci_register_bar(&d->dev, 0, PCI_BASE_ADDRESS_SPACE_MEMORY, &d->mmio= ); - pci_register_bar(&d->dev, 1, PCI_BASE_ADDRESS_SPACE_IO, &d->portio); + pci_register_bar(pci_dev, 0, PCI_BASE_ADDRESS_SPACE_MEMORY, &d->mmio= ); + pci_register_bar(pci_dev, 1, PCI_BASE_ADDRESS_SPACE_IO, &d->portio); =20 d->current =3D -1; d->tests =3D g_malloc0(IOTEST_MAX * sizeof *d->tests); --=20 1.8.1.4