Fix Error: chip/max32660/max32660_serial.c:304:20: error: unused function 'max326_modifyreg' [-Werror,-Wunused-function]

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-13 11:11:18 +08:00 committed by Xiang Xiao
parent 29c46d8734
commit 0f85cf7503

View File

@ -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
****************************************************************************/