[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT 3c2aed8] qdev/prop: convert syborg_interrupt.c to
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT 3c2aed8] qdev/prop: convert syborg_interrupt.c to helpermacros. |
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_interrupt.c b/hw/syborg_interrupt.c
index a372ec1..1b44989 100644
--- a/hw/syborg_interrupt.c
+++ b/hw/syborg_interrupt.c
@@ -222,13 +222,8 @@ static SysBusDeviceInfo syborg_int_info = {
.qdev.name = "syborg,interrupt",
.qdev.size = sizeof(SyborgIntState),
.qdev.props = (Property[]) {
- {
- .name = "num-interrupts",
- .info = &qdev_prop_uint32,
- .offset = offsetof(SyborgIntState, num_irqs),
- .defval = (uint32_t[]) { 64 },
- },
- {/* end of list */}
+ DEFINE_PROP_UINT32("num-interrupts", SyborgIntState, num_irqs, 64),
+ DEFINE_PROP_END_OF_LIST(),
}
};
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT 3c2aed8] qdev/prop: convert syborg_interrupt.c to helpermacros.,
Anthony Liguori <=