From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>
Subject: [Qemu-devel] [PATCH] qdev/prop: convert isa-bus to helper macros.
Date: Tue, 11 Aug 2009 11:38:30 +0200 [thread overview]
Message-ID: <1249983510-2960-1-git-send-email-kraxel@redhat.com> (raw)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
hw/isa-bus.c | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/hw/isa-bus.c b/hw/isa-bus.c
index 8c14b1d..315efbb 100644
--- a/hw/isa-bus.c
+++ b/hw/isa-bus.c
@@ -29,18 +29,9 @@ static struct BusInfo isa_bus_info = {
.name = "ISA",
.size = sizeof(ISABus),
.props = (Property[]) {
- {
- .name = "iobase",
- .info = &qdev_prop_hex32,
- .offset = offsetof(ISADevice, iobase[0]),
- .defval = (uint32_t[]) { -1 },
- },{
- .name = "iobase2",
- .info = &qdev_prop_hex32,
- .offset = offsetof(ISADevice, iobase[1]),
- .defval = (uint32_t[]) { -1 },
- },
- {/* end of list */}
+ DEFINE_PROP_HEX32("iobase", ISADevice, iobase[0], -1),
+ DEFINE_PROP_HEX32("iobase2", ISADevice, iobase[1], -1),
+ DEFINE_PROP_END_OF_LIST(),
}
};
--
1.6.2.5
reply other threads:[~2009-08-11 9:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1249983510-2960-1-git-send-email-kraxel@redhat.com \
--to=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).