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:
parent
29c46d8734
commit
0f85cf7503
@ -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
|
||||
****************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user