qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 7fdaf61] qdev/prop: convert slavio_intctl.c to h


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 7fdaf61] qdev/prop: convert slavio_intctl.c to helper macros.
Date: Mon, 10 Aug 2009 21:48:50 -0000

From: Gerd Hoffmann <address@hidden>

Signed-off-by: Gerd Hoffmann <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
Message-Id: 
Message-Id: 

diff --git a/hw/slavio_intctl.c b/hw/slavio_intctl.c
index a56feb6..dbea1f9 100644
--- a/hw/slavio_intctl.c
+++ b/hw/slavio_intctl.c
@@ -425,12 +425,8 @@ static SysBusDeviceInfo slavio_intctl_info = {
     .qdev.name  = "slavio_intctl",
     .qdev.size  = sizeof(SLAVIO_INTCTLState),
     .qdev.props = (Property[]) {
-        {
-            .name = "cputimer_bit",
-            .info = &qdev_prop_uint32,
-            .offset = offsetof(SLAVIO_INTCTLState, cputimer_bit),
-        },
-        {/* end of property list */}
+        DEFINE_PROP_UINT32("cputimer_bit", SLAVIO_INTCTLState, cputimer_bit, 
0),
+        DEFINE_PROP_END_OF_LIST(),
     }
 };
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]