summaryrefslogtreecommitdiff
path: root/src/device/i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/device/i2c.c')
-rw-r--r--src/device/i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/i2c.c b/src/device/i2c.c
index fb29b7291d..72e5525df1 100644
--- a/src/device/i2c.c
+++ b/src/device/i2c.c
@@ -14,7 +14,7 @@
#include <device/i2c_simple.h>
#include <stdint.h>
-int i2c_read_field(unsigned bus, uint8_t chip, uint8_t reg, uint8_t *data,
+int i2c_read_field(unsigned int bus, uint8_t chip, uint8_t reg, uint8_t *data,
uint8_t mask, uint8_t shift)
{
int ret;
@@ -28,7 +28,7 @@ int i2c_read_field(unsigned bus, uint8_t chip, uint8_t reg, uint8_t *data,
return ret;
}
-int i2c_write_field(unsigned bus, uint8_t chip, uint8_t reg, uint8_t data,
+int i2c_write_field(unsigned int bus, uint8_t chip, uint8_t reg, uint8_t data,
uint8_t mask, uint8_t shift)
{
int ret;