i2c: rename i2c_slave -> I2CSlave

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Anthony Liguori 2011-12-04 20:28:27 -06:00
parent cd6c4cf28b
commit 9e07bdf816
15 changed files with 91 additions and 89 deletions

View file

@ -13,7 +13,7 @@
#include "i2c.h"
typedef struct {
i2c_slave i2c;
I2CSlave i2c;
time_t offset;
struct tm now;
uint8_t nvram[56];
@ -21,7 +21,7 @@ typedef struct {
int addr_byte;
} DS1338State;
static void ds1338_event(i2c_slave *i2c, enum i2c_event event)
static void ds1338_event(I2CSlave *i2c, enum i2c_event event)
{
DS1338State *s = FROM_I2C_SLAVE(DS1338State, i2c);
@ -51,7 +51,7 @@ static void ds1338_event(i2c_slave *i2c, enum i2c_event event)
}
}
static int ds1338_recv(i2c_slave *i2c)
static int ds1338_recv(I2CSlave *i2c)
{
DS1338State *s = FROM_I2C_SLAVE(DS1338State, i2c);
uint8_t res;
@ -61,7 +61,7 @@ static int ds1338_recv(i2c_slave *i2c)
return res;
}
static int ds1338_send(i2c_slave *i2c, uint8_t data)
static int ds1338_send(I2CSlave *i2c, uint8_t data)
{
DS1338State *s = FROM_I2C_SLAVE(DS1338State, i2c);
if (s->addr_byte) {
@ -113,7 +113,7 @@ static int ds1338_send(i2c_slave *i2c, uint8_t data)
return 0;
}
static int ds1338_init(i2c_slave *i2c)
static int ds1338_init(I2CSlave *i2c)
{
return 0;
}