From 52ebe7e0c49526261526192bb38163d47611ff59 Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Tue, 23 Jul 2019 15:26:50 +0200 Subject: [PATCH] Fix naming error. --- inc/i2c_bb.h | 4 ++-- src/i2c.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/i2c_bb.h b/inc/i2c_bb.h index 3f4a68a..c06f49b 100644 --- a/inc/i2c_bb.h +++ b/inc/i2c_bb.h @@ -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 diff --git a/src/i2c.c b/src/i2c.c index 8c30fd3..8748063 100644 --- a/src/i2c.c +++ b/src/i2c.c @@ -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;