mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -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
10
hw/lm832x.c
10
hw/lm832x.c
|
@ -24,7 +24,7 @@
|
|||
#include "console.h"
|
||||
|
||||
typedef struct {
|
||||
i2c_slave i2c;
|
||||
I2CSlave i2c;
|
||||
uint8_t i2c_dir;
|
||||
uint8_t i2c_cycle;
|
||||
uint8_t reg;
|
||||
|
@ -378,7 +378,7 @@ static void lm_kbd_write(LM823KbdState *s, int reg, int byte, uint8_t value)
|
|||
}
|
||||
}
|
||||
|
||||
static void lm_i2c_event(i2c_slave *i2c, enum i2c_event event)
|
||||
static void lm_i2c_event(I2CSlave *i2c, enum i2c_event event)
|
||||
{
|
||||
LM823KbdState *s = FROM_I2C_SLAVE(LM823KbdState, i2c);
|
||||
|
||||
|
@ -394,14 +394,14 @@ static void lm_i2c_event(i2c_slave *i2c, enum i2c_event event)
|
|||
}
|
||||
}
|
||||
|
||||
static int lm_i2c_rx(i2c_slave *i2c)
|
||||
static int lm_i2c_rx(I2CSlave *i2c)
|
||||
{
|
||||
LM823KbdState *s = FROM_I2C_SLAVE(LM823KbdState, i2c);
|
||||
|
||||
return lm_kbd_read(s, s->reg, s->i2c_cycle ++);
|
||||
}
|
||||
|
||||
static int lm_i2c_tx(i2c_slave *i2c, uint8_t data)
|
||||
static int lm_i2c_tx(I2CSlave *i2c, uint8_t data)
|
||||
{
|
||||
LM823KbdState *s = (LM823KbdState *) i2c;
|
||||
|
||||
|
@ -458,7 +458,7 @@ static const VMStateDescription vmstate_lm_kbd = {
|
|||
};
|
||||
|
||||
|
||||
static int lm8323_init(i2c_slave *i2c)
|
||||
static int lm8323_init(I2CSlave *i2c)
|
||||
{
|
||||
LM823KbdState *s = FROM_I2C_SLAVE(LM823KbdState, i2c);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue