From 0f85cf7503831ddc3105f30e95812f27466f9f36 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 13 Nov 2022 11:11:18 +0800 Subject: [PATCH] Fix Error: chip/max32660/max32660_serial.c:304:20: error: unused function 'max326_modifyreg' [-Werror,-Wunused-function] Signed-off-by: Xiang Xiao --- .../src/max326xx/max32660/max32660_serial.c | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/arch/arm/src/max326xx/max32660/max32660_serial.c b/arch/arm/src/max326xx/max32660/max32660_serial.c index 7c76975b8d..bf6699a929 100644 --- a/arch/arm/src/max326xx/max32660/max32660_serial.c +++ b/arch/arm/src/max326xx/max32660/max32660_serial.c @@ -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 ****************************************************************************/