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

@ -59,7 +59,7 @@ static int uart_mock_rx_disable(const struct device *dev)
return 0;
}
static struct uart_driver_api mock_api = {
static DEVICE_API(uart, mock_api) = {
.callback_set = uart_mock_callback_set,
.tx = uart_mock_tx,
.rx_enable = uart_mock_rx_enable,