[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT 5cdabc1] qdev/prop: convert syborg_pointer.c to
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT 5cdabc1] qdev/prop: convert syborg_pointer.c to helper macros. |
Date: |
Mon, 10 Aug 2009 21:48:52 -0000 |
From: Gerd Hoffmann <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
Message-Id:
diff --git a/hw/syborg_pointer.c b/hw/syborg_pointer.c
index edd1f22..152602a 100644
--- a/hw/syborg_pointer.c
+++ b/hw/syborg_pointer.c
@@ -227,18 +227,9 @@ static SysBusDeviceInfo syborg_pointer_info = {
.qdev.name = "syborg,pointer",
.qdev.size = sizeof(SyborgPointerState),
.qdev.props = (Property[]) {
- {
- .name = "fifo-size",
- .info = &qdev_prop_uint32,
- .offset = offsetof(SyborgPointerState, fifo_size),
- .defval = (uint32_t[]) { 16 },
- },{
- .name = "absolute",
- .info = &qdev_prop_uint32,
- .offset = offsetof(SyborgPointerState, absolute),
- .defval = (uint32_t[]) { 1 },
- },
- {/* end of list */}
+ DEFINE_PROP_UINT32("fifo-size", SyborgPointerState, fifo_size, 16),
+ DEFINE_PROP_UINT32("absolute", SyborgPointerState, absolute, 1),
+ DEFINE_PROP_END_OF_LIST(),
}
};
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT 5cdabc1] qdev/prop: convert syborg_pointer.c to helper macros.,
Anthony Liguori <=