drivers: serial: Place API into iterable section

Add wrapper DEVICE_API macro to all uart_driver_api instances.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-11-28 21:21:48 +01:00 committed by Fabio Baltieri
commit 29c9b91340
74 changed files with 80 additions and 80 deletions

View file

@ -283,7 +283,7 @@ static void kb1200_uart_poll_out(const struct device *dev, unsigned char c)
#endif /* CONFIG_UART_INTERRUPT_DRIVEN */
}
static const struct uart_driver_api kb1200_uart_api = {
static DEVICE_API(uart, kb1200_uart_api) = {
.poll_in = kb1200_uart_poll_in,
.poll_out = kb1200_uart_poll_out,
.err_check = kb1200_uart_err_check,