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