stm32_i2c_alt:Duplicate non CS dev of regval
This commit is contained in:
parent
c2a1b719be
commit
f5cf22d871
|
@ -1867,7 +1867,6 @@ static int stm32_i2c_isr(struct stm32_i2c_priv_s *priv)
|
|||
#else
|
||||
/* Clear all interrupts */
|
||||
|
||||
uint32_t regval;
|
||||
regval = stm32_i2c_getreg(priv, STM32_I2C_CR2_OFFSET);
|
||||
regval &= ~I2C_CR2_ALLINTS;
|
||||
stm32_i2c_putreg(priv, STM32_I2C_CR2_OFFSET, regval);
|
||||
|
|
Loading…
Reference in New Issue