summaryrefslogtreecommitdiffstats
path: root/hw/gus.c
diff options
context:
space:
mode:
authormalc2012-02-07 19:11:04 +0100
committermalc2012-02-07 19:11:04 +0100
commitcf4dc461a4cfc3e056ee24edb26154f4d34a6278 (patch)
tree46594643215cb6027239220696c512c8977c897d /hw/gus.c
parents390x: fix qom-ification fall-out (diff)
downloadqemu-cf4dc461a4cfc3e056ee24edb26154f4d34a6278.tar.gz
qemu-cf4dc461a4cfc3e056ee24edb26154f4d34a6278.tar.xz
qemu-cf4dc461a4cfc3e056ee24edb26154f4d34a6278.zip
Restore consistent formatting
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'hw/gus.c')
-rw-r--r--hw/gus.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/hw/gus.c b/hw/gus.c
index 49e5dbfbbb..20547075ec 100644
--- a/hw/gus.c
+++ b/hw/gus.c
@@ -221,14 +221,14 @@ static const VMStateDescription vmstate_gus = {
.minimum_version_id = 2,
.minimum_version_id_old = 2,
.fields = (VMStateField []) {
- VMSTATE_INT32(pos, GUSState),
- VMSTATE_INT32(left, GUSState),
- VMSTATE_INT32(shift, GUSState),
- VMSTATE_INT32(irqs, GUSState),
- VMSTATE_INT32(samples, GUSState),
- VMSTATE_INT64(last_ticks, GUSState),
- VMSTATE_BUFFER(himem, GUSState),
- VMSTATE_END_OF_LIST()
+ VMSTATE_INT32 (pos, GUSState),
+ VMSTATE_INT32 (left, GUSState),
+ VMSTATE_INT32 (shift, GUSState),
+ VMSTATE_INT32 (irqs, GUSState),
+ VMSTATE_INT32 (samples, GUSState),
+ VMSTATE_INT64 (last_ticks, GUSState),
+ VMSTATE_BUFFER (himem, GUSState),
+ VMSTATE_END_OF_LIST ()
}
};
@@ -239,13 +239,13 @@ static const MemoryRegionPortio gus_portio_list1[] = {
{0x006, 10, 2, .read = gus_readw, .write = gus_writew },
{0x100, 8, 1, .read = gus_readb, .write = gus_writeb },
{0x100, 8, 2, .read = gus_readw, .write = gus_writew },
- PORTIO_END_OF_LIST(),
+ PORTIO_END_OF_LIST (),
};
static const MemoryRegionPortio gus_portio_list2[] = {
{0, 1, 1, .read = gus_readb },
{0, 1, 2, .read = gus_readw },
- PORTIO_END_OF_LIST(),
+ PORTIO_END_OF_LIST (),
};
static int gus_initfn (ISADevice *dev)
@@ -307,10 +307,10 @@ static Property gus_properties[] = {
DEFINE_PROP_END_OF_LIST (),
};
-static void gus_class_initfn(ObjectClass *klass, void *data)
+static void gus_class_initfn (ObjectClass *klass, void *data)
{
- DeviceClass *dc = DEVICE_CLASS(klass);
- ISADeviceClass *ic = ISA_DEVICE_CLASS(klass);
+ DeviceClass *dc = DEVICE_CLASS (klass);
+ ISADeviceClass *ic = ISA_DEVICE_CLASS (klass);
ic->init = gus_initfn;
dc->desc = "Gravis Ultrasound GF1";
dc->vmsd = &vmstate_gus;
@@ -326,6 +326,6 @@ static TypeInfo gus_info = {
static void gus_register (void)
{
- type_register_static(&gus_info);
+ type_register_static (&gus_info);
}
device_init (gus_register)