drivers: i2c: i2c_dw: Remove redundant last msg stop

The I2C API itself now enforces last msg stop, remove duplicate code
from driver.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
This commit is contained in:
Bjarki Arge Andreasen 2024-07-12 08:00:35 +02:00 committed by Carles Cufí
parent 2b007ab784
commit 580bdafb81
1 changed files with 0 additions and 5 deletions

View File

@ -697,11 +697,6 @@ static int i2c_dw_transfer(const struct device *dev,
dw->xfr_flags |= I2C_MSG_RESTART;
}
/* Send STOP if this is the last message */
if (msg_left == 1U) {
dw->xfr_flags |= I2C_MSG_STOP;
}
dw->state &= ~(I2C_DW_CMD_SEND | I2C_DW_CMD_RECV);
if ((dw->xfr_flags & I2C_MSG_RW_MASK) == I2C_MSG_WRITE) {