From 7cef0e361467136064a066de718af12e00a9e7d9 Mon Sep 17 00:00:00 2001 From: Pieter De Gendt Date: Wed, 12 Feb 2025 09:27:09 +0100 Subject: [PATCH] drivers: serial: Wrap driver instances in device API macro Use the device API macro to place the driver API instance into an iterable section. Signed-off-by: Pieter De Gendt --- drivers/serial/uart_cc23x0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/uart_cc23x0.c b/drivers/serial/uart_cc23x0.c index 5576871aacac..c26bb40e59fc 100644 --- a/drivers/serial/uart_cc23x0.c +++ b/drivers/serial/uart_cc23x0.c @@ -307,7 +307,7 @@ static void uart_cc23x0_isr(const struct device *dev) #endif /* CONFIG_UART_INTERRUPT_DRIVEN */ -static const struct uart_driver_api uart_cc23x0_driver_api = { +static DEVICE_API(uart, uart_cc23x0_driver_api) = { .poll_in = uart_cc23x0_poll_in, .poll_out = uart_cc23x0_poll_out, .err_check = uart_cc23x0_err_check,