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:
master
Gerd Hoffmann 2009-08-03 17:35:22 +02:00 committed by Anthony Liguori
parent 1832efa29d
commit d210a1b43a
1 changed files with 2 additions and 7 deletions

View File

@ -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(),
}
};