summaryrefslogtreecommitdiff
path: root/driver/ina2xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/ina2xx.c')
-rw-r--r--driver/ina2xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/ina2xx.c b/driver/ina2xx.c
index 2b0fca07e5..66c8742957 100644
--- a/driver/ina2xx.c
+++ b/driver/ina2xx.c
@@ -24,7 +24,7 @@ uint16_t ina2xx_read(uint8_t idx, uint8_t reg)
int res;
int val;
- res = i2c_read16(I2C_PORT_MASTER, INA2XX_I2C_ADDR_FLAGS | idx,
+ res = i2c_read16(I2C_PORT_CONTROLLER, INA2XX_I2C_ADDR_FLAGS | idx,
reg, &val);
if (res) {
CPRINTS("INA2XX I2C read failed");
@@ -38,7 +38,7 @@ int ina2xx_write(uint8_t idx, uint8_t reg, uint16_t val)
int res;
uint16_t be_val = (val >> 8) | ((val & 0xff) << 8);
- res = i2c_write16(I2C_PORT_MASTER, INA2XX_I2C_ADDR_FLAGS | idx,
+ res = i2c_write16(I2C_PORT_CONTROLLER, INA2XX_I2C_ADDR_FLAGS | idx,
reg, be_val);
if (res)
CPRINTS("INA2XX I2C write failed");