diff options
Diffstat (limited to 'common/host_command_master.c')
-rw-r--r-- | common/host_command_master.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/common/host_command_master.c b/common/host_command_master.c index 57223f2346..5f707eac1a 100644 --- a/common/host_command_master.c +++ b/common/host_command_master.c @@ -81,8 +81,8 @@ static int pd_host_command_internal(int command, int version, */ i2c_lock(I2C_PORT_PD_MCU, 1); i2c_set_timeout(I2C_PORT_PD_MCU, PD_HOST_COMMAND_TIMEOUT_US); - ret = i2c_xfer_unlocked__7bf(I2C_PORT_PD_MCU, - CONFIG_USB_PD_I2C_SLAVE_ADDR__7BF, + ret = i2c_xfer_unlocked(I2C_PORT_PD_MCU, + CONFIG_USB_PD_I2C_SLAVE_ADDR_FLAGS, &req_buf[0], outsize + sizeof(rq) + 1, &resp_buf[0], 2, I2C_XFER_START); i2c_set_timeout(I2C_PORT_PD_MCU, 0); @@ -96,8 +96,8 @@ static int pd_host_command_internal(int command, int version, if (resp_len > (insize + sizeof(rs))) { /* Do a dummy read to generate stop condition */ - i2c_xfer_unlocked__7bf(I2C_PORT_PD_MCU, - CONFIG_USB_PD_I2C_SLAVE_ADDR__7BF, + i2c_xfer_unlocked(I2C_PORT_PD_MCU, + CONFIG_USB_PD_I2C_SLAVE_ADDR_FLAGS, 0, 0, &resp_buf[2], 1, I2C_XFER_STOP); i2c_lock(I2C_PORT_PD_MCU, 0); CPRINTS("response size is too large %d > %d", @@ -106,8 +106,8 @@ static int pd_host_command_internal(int command, int version, } /* Receive remaining data */ - ret = i2c_xfer_unlocked__7bf(I2C_PORT_PD_MCU, - CONFIG_USB_PD_I2C_SLAVE_ADDR__7BF, + ret = i2c_xfer_unlocked(I2C_PORT_PD_MCU, + CONFIG_USB_PD_I2C_SLAVE_ADDR_FLAGS, 0, 0, &resp_buf[2], resp_len, I2C_XFER_STOP); i2c_lock(I2C_PORT_PD_MCU, 0); |