From: Gerd Hoffmann Date: Mon, 3 Aug 2009 15:35:25 +0000 (+0200) Subject: qdev/prop: convert i2c.c to helper macros. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=368eb5d488827701b309b2b819d1156e59ebab1d;p=qemu.git qdev/prop: convert i2c.c to helper macros. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori Message-Id: --- diff --git a/hw/i2c.c b/hw/i2c.c index 42a5d7a6b8..7a1b358056 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(), } };