drivers: serial: usart_sam: Fix irq_update API function

The `irq_update` UART API function must always return 1 according to
the API documentations.

This commit fixes the `irq_update` API function to unconditionally
return '1'.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This commit is contained in:
Stephanos Ioannidis 2020-03-05 16:15:16 +09:00 committed by Johan Hedberg
parent 097cbc099f
commit afb51d2750

View file

@ -300,9 +300,9 @@ static int usart_sam_irq_is_pending(struct device *dev)
static int usart_sam_irq_update(struct device *dev)
{
volatile Usart * const usart = DEV_CFG(dev)->regs;
ARG_UNUSED(dev);
return (usart->US_CSR & US_CSR_TXEMPTY);
return 1;
}
static void usart_sam_irq_callback_set(struct device *dev,