提交 d210a1b4 编写于 作者: G Gerd Hoffmann 提交者: Anthony Liguori

qdev/prop: convert eccmemctl.c to helper macros.

Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
Message-Id: 
上级 1832efa2
...@@ -340,13 +340,8 @@ static SysBusDeviceInfo ecc_info = { ...@@ -340,13 +340,8 @@ static SysBusDeviceInfo ecc_info = {
.qdev.name = "eccmemctl", .qdev.name = "eccmemctl",
.qdev.size = sizeof(ECCState), .qdev.size = sizeof(ECCState),
.qdev.props = (Property[]) { .qdev.props = (Property[]) {
{ DEFINE_PROP_HEX32("version", ECCState, version, -1),
.name = "version", DEFINE_PROP_END_OF_LIST(),
.info = &qdev_prop_hex32,
.offset = offsetof(ECCState, version),
.defval = (uint32_t[]) { -1 },
},
{/* end of list */}
} }
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册