Skip to content

Commit 7cef0e3

Browse files
pdgendtkartben
authored andcommitted
drivers: serial: Wrap driver instances in device API macro
Use the device API macro to place the driver API instance into an iterable section. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent f47bfeb commit 7cef0e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/serial/uart_cc23x0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ static void uart_cc23x0_isr(const struct device *dev)
307307

308308
#endif /* CONFIG_UART_INTERRUPT_DRIVEN */
309309

310-
static const struct uart_driver_api uart_cc23x0_driver_api = {
310+
static DEVICE_API(uart, uart_cc23x0_driver_api) = {
311311
.poll_in = uart_cc23x0_poll_in,
312312
.poll_out = uart_cc23x0_poll_out,
313313
.err_check = uart_cc23x0_err_check,

0 commit comments

Comments
 (0)