drivers: serial: uart_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:18:54 +09:00 committed by Johan Hedberg
parent afb51d2750
commit 95deb43e6f

View file

@ -315,9 +315,9 @@ static int uart_sam_irq_is_pending(struct device *dev)
static int uart_sam_irq_update(struct device *dev)
{
volatile Uart * const uart = DEV_CFG(dev)->regs;
ARG_UNUSED(dev);
return (uart->UART_SR & UART_SR_TXEMPTY);
return 1;
}
static void uart_sam_irq_callback_set(struct device *dev,