From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38992) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNe70-0007pP-Ua for qemu-devel@nongnu.org; Mon, 15 Oct 2012 02:25:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNe6y-0000ar-MQ for qemu-devel@nongnu.org; Mon, 15 Oct 2012 02:25:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53849) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNe6y-0000Zj-DO for qemu-devel@nongnu.org; Mon, 15 Oct 2012 02:25:12 -0400 From: Gerd Hoffmann Date: Mon, 15 Oct 2012 08:02:54 +0200 Message-Id: <1350280977-5765-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1350280977-5765-1-git-send-email-kraxel@redhat.com> References: <1350280977-5765-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH v2 1/4] vga: fix indention List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: blauwirbel@gmail.com, Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- hw/vga-pci.c | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/hw/vga-pci.c b/hw/vga-pci.c index 996d47f..5f55f36 100644 --- a/hw/vga-pci.c +++ b/hw/vga-pci.c @@ -48,25 +48,25 @@ static const VMStateDescription vmstate_vga_pci = { static int pci_std_vga_initfn(PCIDevice *dev) { - PCIVGAState *d = DO_UPCAST(PCIVGAState, dev, dev); - VGACommonState *s = &d->vga; + PCIVGAState *d = DO_UPCAST(PCIVGAState, dev, dev); + VGACommonState *s = &d->vga; - // vga + console init - vga_common_init(s); - vga_init(s, pci_address_space(dev), pci_address_space_io(dev), true); + /* vga + console init */ + vga_common_init(s); + vga_init(s, pci_address_space(dev), pci_address_space_io(dev), true); - s->ds = graphic_console_init(s->update, s->invalidate, - s->screen_dump, s->text_update, s); + s->ds = graphic_console_init(s->update, s->invalidate, + s->screen_dump, s->text_update, s); - /* XXX: VGA_RAM_SIZE must be a power of two */ - pci_register_bar(&d->dev, 0, PCI_BASE_ADDRESS_MEM_PREFETCH, &s->vram); + /* XXX: VGA_RAM_SIZE must be a power of two */ + pci_register_bar(&d->dev, 0, PCI_BASE_ADDRESS_MEM_PREFETCH, &s->vram); - if (!dev->rom_bar) { - /* compatibility with pc-0.13 and older */ - vga_init_vbe(s, pci_address_space(dev)); - } + if (!dev->rom_bar) { + /* compatibility with pc-0.13 and older */ + vga_init_vbe(s, pci_address_space(dev)); + } - return 0; + return 0; } static Property vga_pci_properties[] = { -- 1.7.1