diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-08-03 17:35:22 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-10 13:05:50 -0500 |
commit | d210a1b43a0d5fb944596140c30c513e805df86c (patch) | |
tree | 6ca5e35b97f1b64e6017ebecbb4e902db245b5ca /hw/eccmemctl.c | |
parent | 1832efa29d07cfa35fcd796df1f8ccefb694a59d (diff) | |
download | qemu-d210a1b43a0d5fb944596140c30c513e805df86c.zip qemu-d210a1b43a0d5fb944596140c30c513e805df86c.tar.gz qemu-d210a1b43a0d5fb944596140c30c513e805df86c.tar.bz2 |
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.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/hw/eccmemctl.c b/hw/eccmemctl.c index 2c6e4c6..a19a112 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(), } }; |