mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-07 11:19:59 +00:00
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:
This commit is contained in:
parent
ddde095c8f
commit
368eb5d488
8
hw/i2c.c
8
hw/i2c.c
@ -21,12 +21,8 @@ static struct BusInfo i2c_bus_info = {
|
|||||||
.name = "I2C",
|
.name = "I2C",
|
||||||
.size = sizeof(i2c_bus),
|
.size = sizeof(i2c_bus),
|
||||||
.props = (Property[]) {
|
.props = (Property[]) {
|
||||||
{
|
DEFINE_PROP_UINT32("address", struct i2c_slave, address, 0),
|
||||||
.name = "address",
|
DEFINE_PROP_END_OF_LIST(),
|
||||||
.info = &qdev_prop_uint32,
|
|
||||||
.offset = offsetof(struct i2c_slave, address),
|
|
||||||
},
|
|
||||||
{/* end of list */}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user