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:
parent
afb51d2750
commit
95deb43e6f
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue