From d210a1b43a0d5fb944596140c30c513e805df86c Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 3 Aug 2009 17:35:22 +0200 Subject: [PATCH] qdev/prop: convert eccmemctl.c to helper macros. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori Message-Id: --- hw/eccmemctl.c | 9 ++------- 1 file 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(), } }; -- 2.11.0