aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-03 17:35:39 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:11:26 -0500
commit51dd59272bf3c99f2d41a6ac36a2e3a93c552a42 (patch)
treeddc59d965cad5cc4d5fdea1849c7ca7284490a14
parent3c2aed8b27273e46246aa642aa49a400580eb86e (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:
-rw-r--r--hw/syborg_keyboard.c9
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(),
}
};