mirror of
https://github.com/qemu/qemu.git
synced 2024-11-26 21:33:40 +08:00
qdev/prop: convert arm_sysctl.c to helper macros.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
This commit is contained in:
parent
54586bd17d
commit
e325775b35
@ -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(),
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user