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

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

Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
Message-Id: 
上级 54586bd1
......@@ -219,12 +219,8 @@ static SysBusDeviceInfo arm_sysctl_info = {
.qdev.name = "realview_sysctl",
.qdev.size = sizeof(arm_sysctl_state),
.qdev.props = (Property[]) {
{
.name = "sys_id",
.info = &qdev_prop_uint32,
.offset = offsetof(arm_sysctl_state, sys_id),
},
{/* end of list */}
DEFINE_PROP_UINT32("sys_id", arm_sysctl_state, sys_id, 0),
DEFINE_PROP_END_OF_LIST(),
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册