projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4470b2
)
qdev/prop: convert syborg_timer.c to helper macros.
author
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 3 Aug 2009 15:35:42 +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_timer.c
patch
|
blob
|
history
diff --git
a/hw/syborg_timer.c
b/hw/syborg_timer.c
index cf96c5fffe305de91606767d48aec82079992379..f64b824e464107add5d5a93217527ae3162b4f1d 100644
(file)
--- a/
hw/syborg_timer.c
+++ b/
hw/syborg_timer.c
@@
-230,12
+230,8
@@
static SysBusDeviceInfo syborg_timer_info = {
.qdev.name = "syborg,timer",
.qdev.size = sizeof(SyborgTimerState),
.qdev.props = (Property[]) {
- {
- .name = "frequency",
- .info = &qdev_prop_uint32,
- .offset = offsetof(SyborgTimerState, freq),
- },
- {/* end of list */}
+ DEFINE_PROP_UINT32("frequency",SyborgTimerState, freq, 0),
+ DEFINE_PROP_END_OF_LIST(),
}
};