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:
parent
84a3d1fd9f
commit
29c9b91340
74 changed files with 80 additions and 80 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue