]> git.proxmox.com Git - qemu.git/commitdiff
Indent ac97 and es1370 according to audio formatting
authorAnthony Liguori <aliguori@us.ibm.com>
Fri, 10 Jul 2009 20:32:03 +0000 (15:32 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 10 Jul 2009 20:32:03 +0000 (15:32 -0500)
For the sake of consistency.  I pulled in the wrong patches from Gerd when
he did the qdev conversion.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/ac97.c
hw/es1370.c

index 37aca9e89fb4ed35964b01299b68d82ff2fc7ace..f18fa524f4b60b66bafa7a70d639046830969e3a 100644 (file)
--- a/hw/ac97.c
+++ b/hw/ac97.c
@@ -1308,9 +1308,9 @@ static void ac97_on_reset (void *opaque)
     mixer_reset (s);
 }
 
-static void ac97_initfn(PCIDevice *dev)
+static void ac97_initfn (PCIDevice *dev)
 {
-    PCIAC97LinkState *d = DO_UPCAST(PCIAC97LinkState, dev, dev);
+    PCIAC97LinkState *d = DO_UPCAST (PCIAC97LinkState, dev, dev);
     AC97LinkState *s = &d->ac97;
     uint8_t *c = d->dev.config;
 
@@ -1360,19 +1360,19 @@ static void ac97_initfn(PCIDevice *dev)
 
 int ac97_init (PCIBus *bus)
 {
-    pci_create_simple(bus, -1, "AC97");
+    pci_create_simple (bus, -1, "AC97");
     return 0;
 }
 
 static PCIDeviceInfo ac97_info = {
     .qdev.name    = "AC97",
-    .qdev.size    = sizeof(PCIAC97LinkState),
+    .qdev.size    = sizeof (PCIAC97LinkState),
     .init         = ac97_initfn,
 };
 
-static void ac97_register(void)
+static void ac97_register (void)
 {
-    pci_qdev_register(&ac97_info);
+    pci_qdev_register (&ac97_info);
 }
-device_init(ac97_register);
+device_init (ac97_register);
 
index 9e860f9b08472c1af4d868cc93d3b19f708a6e00..8d5a9f9883af2f977319c1cb9df963fceea602be 100644 (file)
@@ -1054,13 +1054,13 @@ int es1370_init (PCIBus *bus)
 
 static PCIDeviceInfo es1370_info = {
     .qdev.name    = "ES1370",
-    .qdev.size    = sizeof(PCIES1370State),
+    .qdev.size    = sizeof (PCIES1370State),
     .init         = es1370_initfn,
 };
 
 static void es1370_register(void)
 {
-    pci_qdev_register(&es1370_info);
+    pci_qdev_register (&es1370_info);
 }
-device_init(es1370_register);
+device_init (es1370_register);