summaryrefslogtreecommitdiff
path: root/board/host/battery.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/host/battery.c')
-rw-r--r--board/host/battery.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/host/battery.c b/board/host/battery.c
index 6ec74c61b4..1228485ab7 100644
--- a/board/host/battery.c
+++ b/board/host/battery.c
@@ -14,14 +14,14 @@
static uint16_t mock_smart_battery[SB_MANUFACTURER_DATA + 1];
-int sb_i2c_xfer__7bf(int port, uint16_t slave_addr__7bf,
+int sb_i2c_xfer(int port, uint16_t slave_addr_flags,
const uint8_t *out, int out_size,
uint8_t *in, int in_size, int flags)
{
if (out_size == 0)
return EC_SUCCESS;
- if (port != I2C_PORT_BATTERY || slave_addr__7bf != BATTERY_ADDR__7bf)
+ if (port != I2C_PORT_BATTERY || slave_addr_flags != BATTERY_ADDR_FLAGS)
return EC_ERROR_INVAL;
if (out[0] >= ARRAY_SIZE(mock_smart_battery))
return EC_ERROR_UNIMPLEMENTED;
@@ -42,7 +42,7 @@ int sb_i2c_xfer__7bf(int port, uint16_t slave_addr__7bf,
}
return EC_SUCCESS;
}
-DECLARE_TEST_I2C_XFER(sb_i2c_xfer__7bf);
+DECLARE_TEST_I2C_XFER(sb_i2c_xfer);
int battery_time_at_rate(int rate, int *minutes)
{