Skip to content

Commit

Permalink
drivers: serial: Wrap driver instances in device API macro
Browse files Browse the repository at this point in the history
Use the device API macro to place the driver API instance into an iterable
section.

Signed-off-by: Pieter De Gendt <[email protected]>
  • Loading branch information
pdgendt authored and kartben committed Feb 12, 2025
1 parent f47bfeb commit 7cef0e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/serial/uart_cc23x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ static void uart_cc23x0_isr(const struct device *dev)

#endif /* CONFIG_UART_INTERRUPT_DRIVEN */

static const struct uart_driver_api uart_cc23x0_driver_api = {
static DEVICE_API(uart, uart_cc23x0_driver_api) = {
.poll_in = uart_cc23x0_poll_in,
.poll_out = uart_cc23x0_poll_out,
.err_check = uart_cc23x0_err_check,
Expand Down

0 comments on commit 7cef0e3

Please sign in to comment.