Fix naming error.
This commit is contained in:
parent
b6ca09b58e
commit
501991058c
@ -11,7 +11,7 @@ struct i2c_bb {
|
||||
int i2c_open(const struct i2c_bb *i2c);
|
||||
int i2c_close(const struct i2c_bb *i2c);
|
||||
|
||||
int i2_read(const struct i2c_bb *i2c, uint8_t slave_addr, char *buffer, unsigned int len);
|
||||
int i2_write(const struct i2c_bb *i2c, uint8_t slave_addr, const char *buffer, unsigned int len);
|
||||
int i2c_read(const struct i2c_bb *i2c, uint8_t slave_addr, char *buffer, unsigned int len);
|
||||
int i2c_write(const struct i2c_bb *i2c, uint8_t slave_addr, const char *buffer, unsigned int len);
|
||||
|
||||
#endif
|
||||
|
@ -40,7 +40,7 @@ int i2c_close(const struct i2c_bb *i2c)
|
||||
return res;
|
||||
}
|
||||
|
||||
int i2_read(const struct i2c_bb *i2c, uint8_t slave_addr, char *buffer, unsigned int len)
|
||||
int i2c_read(const struct i2c_bb *i2c, uint8_t slave_addr, char *buffer, unsigned int len)
|
||||
{
|
||||
unsigned int i;
|
||||
assert(NULL != i2c);
|
||||
@ -59,7 +59,7 @@ int i2_read(const struct i2c_bb *i2c, uint8_t slave_addr, char *buffer, unsigned
|
||||
return (int)i;
|
||||
}
|
||||
|
||||
int i2_write(const struct i2c_bb *i2c, uint8_t slave_addr, const char *buffer, unsigned int len)
|
||||
int i2c_write(const struct i2c_bb *i2c, uint8_t slave_addr, const char *buffer, unsigned int len)
|
||||
{
|
||||
unsigned int i;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user