qdev/prop: convert integratorcp.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
368eb5d488
commit
bb36f66a97
|
@ -526,12 +526,8 @@ static SysBusDeviceInfo core_info = {
|
||||||
.qdev.name = "integrator_core",
|
.qdev.name = "integrator_core",
|
||||||
.qdev.size = sizeof(integratorcm_state),
|
.qdev.size = sizeof(integratorcm_state),
|
||||||
.qdev.props = (Property[]) {
|
.qdev.props = (Property[]) {
|
||||||
{
|
DEFINE_PROP_UINT32("memsz", integratorcm_state, memsz, 0),
|
||||||
.name = "memsz",
|
DEFINE_PROP_END_OF_LIST(),
|
||||||
.info = &qdev_prop_uint32,
|
|
||||||
.offset = offsetof(integratorcm_state, memsz),
|
|
||||||
},
|
|
||||||
{/* end of list */}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue