projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cdabc1
)
qdev/prop: convert syborg_serial.c to helper macros.
author
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 3 Aug 2009 15:35:41 +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_serial.c
patch
|
blob
|
history
diff --git
a/hw/syborg_serial.c
b/hw/syborg_serial.c
index f69342154ada1f505f900c232d4a486781bbed3e..f1c6c7e536bf19f35d7eaedcf9ce6f551b87eef9 100644
(file)
--- a/
hw/syborg_serial.c
+++ b/
hw/syborg_serial.c
@@
-344,13
+344,8
@@
static SysBusDeviceInfo syborg_serial_info = {
.qdev.name = "syborg,serial",
.qdev.size = sizeof(SyborgSerialState),
.qdev.props = (Property[]) {
- {
- .name = "fifo-size",
- .info = &qdev_prop_uint32,
- .offset = offsetof(SyborgSerialState, fifo_size),
- .defval = (uint32_t[]) { 16 },
- },
- {/* end of list */}
+ DEFINE_PROP_UINT32("fifo-size", SyborgSerialState, fifo_size, 16),
+ DEFINE_PROP_END_OF_LIST(),
}
};