aboutsummaryrefslogtreecommitdiff
path: root/hw/i2c.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-03 17:35:25 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:05:51 -0500
commit368eb5d488827701b309b2b819d1156e59ebab1d (patch)
treee8c80b177c330749412e4a195381fc4fb972e5dc /hw/i2c.c
parentddde095c8f12505b46b826b8bf44cf2bd62a5d9b (diff)
downloadqemu-368eb5d488827701b309b2b819d1156e59ebab1d.zip
qemu-368eb5d488827701b309b2b819d1156e59ebab1d.tar.gz
qemu-368eb5d488827701b309b2b819d1156e59ebab1d.tar.bz2
qdev/prop: convert i2c.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/i2c.c')
-rw-r--r--hw/i2c.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/hw/i2c.c b/hw/i2c.c
index 42a5d7a..7a1b358 100644
--- a/hw/i2c.c
+++ b/hw/i2c.c
@@ -21,12 +21,8 @@ static struct BusInfo i2c_bus_info = {
.name = "I2C",
.size = sizeof(i2c_bus),
.props = (Property[]) {
- {
- .name = "address",
- .info = &qdev_prop_uint32,
- .offset = offsetof(struct i2c_slave, address),
- },
- {/* end of list */}
+ DEFINE_PROP_UINT32("address", struct i2c_slave, address, 0),
+ DEFINE_PROP_END_OF_LIST(),
}
};