diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-08-03 17:35:39 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-10 13:11:26 -0500 |
commit | 51dd59272bf3c99f2d41a6ac36a2e3a93c552a42 (patch) | |
tree | ddc59d965cad5cc4d5fdea1849c7ca7284490a14 /hw | |
parent | 3c2aed8b27273e46246aa642aa49a400580eb86e (diff) |
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:
Diffstat (limited to 'hw')
-rw-r--r-- | hw/syborg_keyboard.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/hw/syborg_keyboard.c b/hw/syborg_keyboard.c index ffc85a56a0..deece3c8b8 100644 --- a/hw/syborg_keyboard.c +++ b/hw/syborg_keyboard.c @@ -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(), } }; |