diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-08-03 17:35:25 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-10 13:05:51 -0500 |
commit | 368eb5d488827701b309b2b819d1156e59ebab1d (patch) | |
tree | e8c80b177c330749412e4a195381fc4fb972e5dc /hw/i2c.c | |
parent | ddde095c8f12505b46b826b8bf44cf2bd62a5d9b (diff) |
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.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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(), } }; |