aboutsummaryrefslogtreecommitdiff
path: root/hw/m48t59.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-03 17:35:28 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:05:51 -0500
commit01274424cf1462661c1c03eaa59c885a6b04da29 (patch)
tree51f78f38a250c93c35912ee38681724ca4115d8b /hw/m48t59.c
parent668724a78419ce319d5b255ec8cb85a3e9f8594d (diff)
qdev/prop: convert m48t59.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/m48t59.c')
-rw-r--r--hw/m48t59.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/hw/m48t59.c b/hw/m48t59.c
index 7e53dceb37..6541cbe8f3 100644
--- a/hw/m48t59.c
+++ b/hw/m48t59.c
@@ -668,22 +668,10 @@ static SysBusDeviceInfo m48t59_info = {
.qdev.name = "m48t59",
.qdev.size = sizeof(m48t59_t),
.qdev.props = (Property[]) {
- {
- .name = "size",
- .info = &qdev_prop_uint32,
- .offset = offsetof(m48t59_t, size),
- .defval = (uint32_t[]) { -1 },
- },{
- .name = "type",
- .info = &qdev_prop_uint32,
- .offset = offsetof(m48t59_t, type),
- .defval = (uint32_t[]) { -1 },
- },{
- .name = "io_base",
- .info = &qdev_prop_hex32,
- .offset = offsetof(m48t59_t, io_base),
- },
- {/* end of list */}
+ DEFINE_PROP_UINT32("size", m48t59_t, size, -1),
+ DEFINE_PROP_UINT32("type", m48t59_t, type, -1),
+ DEFINE_PROP_HEX32( "io_base", m48t59_t, io_base, 0),
+ DEFINE_PROP_END_OF_LIST(),
}
};