mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
i2c: rename i2c_slave -> I2CSlave
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
cd6c4cf28b
commit
9e07bdf816
15 changed files with 91 additions and 89 deletions
|
@ -65,7 +65,7 @@ static void smbus_do_write(SMBusDevice *dev)
|
|||
}
|
||||
}
|
||||
|
||||
static void smbus_i2c_event(i2c_slave *s, enum i2c_event event)
|
||||
static void smbus_i2c_event(I2CSlave *s, enum i2c_event event)
|
||||
{
|
||||
SMBusDevice *dev = FROM_I2C_SLAVE(SMBusDevice, s);
|
||||
|
||||
|
@ -148,7 +148,7 @@ static void smbus_i2c_event(i2c_slave *s, enum i2c_event event)
|
|||
}
|
||||
}
|
||||
|
||||
static int smbus_i2c_recv(i2c_slave *s)
|
||||
static int smbus_i2c_recv(I2CSlave *s)
|
||||
{
|
||||
SMBusDeviceInfo *t = container_of(s->info, SMBusDeviceInfo, i2c);
|
||||
SMBusDevice *dev = FROM_I2C_SLAVE(SMBusDevice, s);
|
||||
|
@ -182,7 +182,7 @@ static int smbus_i2c_recv(i2c_slave *s)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int smbus_i2c_send(i2c_slave *s, uint8_t data)
|
||||
static int smbus_i2c_send(I2CSlave *s, uint8_t data)
|
||||
{
|
||||
SMBusDevice *dev = FROM_I2C_SLAVE(SMBusDevice, s);
|
||||
|
||||
|
@ -198,7 +198,7 @@ static int smbus_i2c_send(i2c_slave *s, uint8_t data)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int smbus_device_init(i2c_slave *i2c)
|
||||
static int smbus_device_init(I2CSlave *i2c)
|
||||
{
|
||||
SMBusDeviceInfo *t = container_of(i2c->info, SMBusDeviceInfo, i2c);
|
||||
SMBusDevice *dev = FROM_I2C_SLAVE(SMBusDevice, i2c);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue