aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-03 17:35:46 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:11:27 -0500
commit05f0257906f3364b106bd971db57719cd3f6374e (patch)
treec82a62e5edcbe90f48b759d7a047ec5cc098ad47 /hw
parent72c61d0bf4f1e014ce662f70b459c5a8abd7190d (diff)
qdev/prop: convert xilinx_ethlite.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')
-rw-r--r--hw/xilinx_ethlite.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/hw/xilinx_ethlite.c b/hw/xilinx_ethlite.c
index b3fd25bb47..f981d10edd 100644
--- a/hw/xilinx_ethlite.c
+++ b/hw/xilinx_ethlite.c
@@ -228,18 +228,9 @@ static SysBusDeviceInfo xilinx_ethlite_info = {
.qdev.name = "xilinx,ethlite",
.qdev.size = sizeof(struct xlx_ethlite),
.qdev.props = (Property[]) {
- {
- .name = "txpingpong",
- .info = &qdev_prop_uint32,
- .offset = offsetof(struct xlx_ethlite, c_tx_pingpong),
- .defval = (uint32_t[]) { 1 },
- },{
- .name = "rxpingpong",
- .info = &qdev_prop_uint32,
- .offset = offsetof(struct xlx_ethlite, c_rx_pingpong),
- .defval = (uint32_t[]) { 1 },
- },
- {/* end of list */}
+ DEFINE_PROP_UINT32("txpingpong", struct xlx_ethlite, c_tx_pingpong, 1),
+ DEFINE_PROP_UINT32("rxpingpong", struct xlx_ethlite, c_rx_pingpong, 1),
+ DEFINE_PROP_END_OF_LIST(),
}
};