aboutsummaryrefslogtreecommitdiff
path: root/hw/eccmemctl.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-03 17:35:22 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:05:50 -0500
commitd210a1b43a0d5fb944596140c30c513e805df86c (patch)
tree6ca5e35b97f1b64e6017ebecbb4e902db245b5ca /hw/eccmemctl.c
parent1832efa29d07cfa35fcd796df1f8ccefb694a59d (diff)
qdev/prop: convert eccmemctl.c to helper macros.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
Diffstat (limited to 'hw/eccmemctl.c')
-rw-r--r--hw/eccmemctl.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/hw/eccmemctl.c b/hw/eccmemctl.c
index 2c6e4c61e4..a19a112386 100644
--- a/hw/eccmemctl.c
+++ b/hw/eccmemctl.c
@@ -340,13 +340,8 @@ static SysBusDeviceInfo ecc_info = {
.qdev.name = "eccmemctl",
.qdev.size = sizeof(ECCState),
.qdev.props = (Property[]) {
- {
- .name = "version",
- .info = &qdev_prop_hex32,
- .offset = offsetof(ECCState, version),
- .defval = (uint32_t[]) { -1 },
- },
- {/* end of list */}
+ DEFINE_PROP_HEX32("version", ECCState, version, -1),
+ DEFINE_PROP_END_OF_LIST(),
}
};