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
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue