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

@ -295,7 +295,7 @@ static int leuart_gecko_init(const struct device *dev)
return 0;
}
static const struct uart_driver_api leuart_gecko_driver_api = {
static DEVICE_API(uart, leuart_gecko_driver_api) = {
.poll_in = leuart_gecko_poll_in,
.poll_out = leuart_gecko_poll_out,
.err_check = leuart_gecko_err_check,