Skip to content

Commit 35b843b

Browse files
robhancocksedkartben
authored andcommitted
drivers: serial: serial_test: Support irq_update call
This driver doesn't need to do anything in its irq_update implementation, but add a dummy one so that calls to uart_irq_update don't fail with -ENOSYS. Signed-off-by: Robert Hancock <[email protected]>
1 parent c3f9e6d commit 35b843b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/serial/serial_test.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ static void irq_callback_set(const struct device *dev, uart_irq_callback_user_da
155155
LOG_DBG("callback set");
156156
}
157157

158+
static int irq_update(const struct device *dev)
159+
{
160+
return 1;
161+
}
162+
158163
static int fifo_fill(const struct device *dev, const uint8_t *tx_data, int size)
159164
{
160165
struct serial_vnd_data *data = dev->data;
@@ -433,6 +438,7 @@ static DEVICE_API(uart, serial_vnd_api) = {
433438
#endif /* CONFIG_UART_USE_RUNTIME_CONFIGURE */
434439
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
435440
.irq_callback_set = irq_callback_set,
441+
.irq_update = irq_update,
436442
.irq_rx_enable = irq_rx_enable,
437443
.irq_rx_disable = irq_rx_disable,
438444
.irq_rx_ready = irq_rx_ready,

0 commit comments

Comments
 (0)