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:
parent
2b007ab784
commit
580bdafb81
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue