diff options
Diffstat (limited to 'board/flapjack/battery.c')
-rw-r--r-- | board/flapjack/battery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/flapjack/battery.c b/board/flapjack/battery.c index 3c3825d5cf..5bb6b07a9f 100644 --- a/board/flapjack/battery.c +++ b/board/flapjack/battery.c @@ -398,10 +398,10 @@ int charger_profile_override(struct charge_state_data *curr) * Pull down WPC VBUS. Need to use raw i2c APIs because RO * doesn't have p9221 driver. If WPC is off, this is a no-op. */ - if (i2c_read_offset16(I2C_PORT_WPC, P9221_R7_ADDR, + if (i2c_read_offset16__7bf(I2C_PORT_WPC, P9221_R7_ADDR__7bf, P9221R7_VOUT_SET_REG, &val, 1) == EC_SUCCESS && val * 100 != wpc_mv) - i2c_write_offset16(I2C_PORT_WPC, P9221_R7_ADDR, + i2c_write_offset16__7bf(I2C_PORT_WPC, P9221_R7_ADDR__7bf, P9221R7_VOUT_SET_REG, wpc_mv / 100, 1); if ((curr->batt.flags & BATT_FLAG_BAD_TEMPERATURE) || |