Fix Error: chip/max32660/max32660_serial.c:304:20: error: unused function 'max326_modifyreg' [-Werror,-Wunused-function]
@@ -297,28 +297,6 @@ static inline void max326_serialout(struct max326_dev_s *priv,
putreg32(value, priv->uartbase + offset);
}
-/****************************************************************************
- * Name: max326_modifyreg
- ****************************************************************************/
-
-static inline void max326_modifyreg(struct max326_dev_s *priv,
- unsigned int offset, uint32_t setbits,
- uint32_t clrbits)
-{
- irqstate_t flags;
- uintptr_t regaddr = priv->uartbase + offset;
- uint32_t regval;
-
- flags = enter_critical_section();
-
- regval = getreg32(regaddr);
- regval &= ~clrbits;
- regval |= setbits;
- putreg32(regval, regaddr);
-
- leave_critical_section(flags);
-}
-
/****************************************************************************
* Name: max326_int_enable
****************************************************************************/
