projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c2aed8
)
qdev/prop: convert syborg_keyboard.c to helper macros.
author
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 3 Aug 2009 15:35:39 +0000
(17:35 +0200)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Mon, 10 Aug 2009 18:11:26 +0000
(13:11 -0500)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
hw/syborg_keyboard.c
patch
|
blob
|
history
diff --git
a/hw/syborg_keyboard.c
b/hw/syborg_keyboard.c
index
ffc85a5
..
deece3c
100644
(file)
--- 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(),
}
};