Revision 368eb5d4 hw/i2c.c
b/hw/i2c.c | ||
---|---|---|
21 | 21 |
.name = "I2C", |
22 | 22 |
.size = sizeof(i2c_bus), |
23 | 23 |
.props = (Property[]) { |
24 |
{ |
|
25 |
.name = "address", |
|
26 |
.info = &qdev_prop_uint32, |
|
27 |
.offset = offsetof(struct i2c_slave, address), |
|
28 |
}, |
|
29 |
{/* end of list */} |
|
24 |
DEFINE_PROP_UINT32("address", struct i2c_slave, address, 0), |
|
25 |
DEFINE_PROP_END_OF_LIST(), |
|
30 | 26 |
} |
31 | 27 |
}; |
32 | 28 |
|
Also available in: Unified diff