qdev/prop: convert syborg_keyboard.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
3c2aed8b27
commit
51dd59272b
@ -229,13 +229,8 @@ static SysBusDeviceInfo syborg_keyboard_info = {
|
||||
.qdev.name = "syborg,keyboard",
|
||||
.qdev.size = sizeof(SyborgKeyboardState),
|
||||
.qdev.props = (Property[]) {
|
||||
{
|
||||
.name = "fifo-size",
|
||||
.info = &qdev_prop_uint32,
|
||||
.offset = offsetof(SyborgKeyboardState, fifo_size),
|
||||
.defval = (uint32_t[]) { 16 },
|
||||
},
|
||||
{/* end of list */}
|
||||
DEFINE_PROP_UINT32("fifo-size", SyborgKeyboardState, fifo_size, 16),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user