diff --git a/drivers/serial/uart_aesc.c b/drivers/serial/uart_aesc.c index a4a724a0cae..147176d7edf 100644 --- a/drivers/serial/uart_aesc.c +++ b/drivers/serial/uart_aesc.c @@ -98,7 +98,7 @@ static int uart_aesc_init(const struct device *dev) return 0; } -static const struct uart_driver_api uart_aesc_driver_api = { +static DEVICE_API(uart, uart_aesc_driver_api) = { .poll_in = uart_aesc_poll_in, .poll_out = uart_aesc_poll_out, .err_check = NULL, diff --git a/drivers/serial/uart_bflb.c b/drivers/serial/uart_bflb.c index 30b56df978f..78fbb5c25ce 100644 --- a/drivers/serial/uart_bflb.c +++ b/drivers/serial/uart_bflb.c @@ -275,7 +275,7 @@ static int uart_bflb_pm_control(const struct device *dev, } #endif /* CONFIG_PM_DEVICE */ -static const struct uart_driver_api uart_bflb_driver_api = { +static DEVICE_API(uart, uart_bflb_driver_api) = { .poll_in = uart_bflb_poll_in, .poll_out = uart_bflb_poll_out, #ifdef CONFIG_UART_INTERRUPT_DRIVEN diff --git a/drivers/serial/uart_mspm0.c b/drivers/serial/uart_mspm0.c index 5622adf4f25..a7bf0a31368 100644 --- a/drivers/serial/uart_mspm0.c +++ b/drivers/serial/uart_mspm0.c @@ -95,7 +95,7 @@ static void uart_mspm0_poll_out(const struct device *dev, unsigned char c) DL_UART_Main_transmitDataBlocking(config->regs, c); } -static const struct uart_driver_api uart_mspm0_driver_api = { +static DEVICE_API(uart, uart_mspm0_driver_api) = { .poll_in = uart_mspm0_poll_in, .poll_out = uart_mspm0_poll_out, }; diff --git a/drivers/serial/uart_renesas_rx_sci_qemu.c b/drivers/serial/uart_renesas_rx_sci_qemu.c index 81d494fab24..a4247967dda 100644 --- a/drivers/serial/uart_renesas_rx_sci_qemu.c +++ b/drivers/serial/uart_renesas_rx_sci_qemu.c @@ -97,7 +97,7 @@ static void uart_renesas_rx_sci_qemu_poll_out(const struct device *dev, unsigned uart_renesas_rx_qemu_write_8(dev, TDR, c); } -static const struct uart_driver_api uart_rx_driver_api = { +static DEVICE_API(uart, uart_rx_driver_api) = { .poll_in = uart_renesas_rx_sci_qemu_poll_in, .poll_out = uart_renesas_rx_sci_qemu_poll_out, };