Skip to content

Commit d96e95e

Browse files
henrikbrixandersenkartben
authored andcommitted
drivers: serial: uart: neorv32: neorv32_uart_config_get() can be unused
Guard the neorv32_uart_config_get() function to avoid compilation warning with CONFIG_UART_USE_RUNTIME_CONFIGURE=n. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent 78b114a commit d96e95e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/serial/uart_neorv32.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ static int neorv32_uart_configure(const struct device *dev, const struct uart_co
215215
return 0;
216216
}
217217

218+
#ifdef CONFIG_UART_USE_RUNTIME_CONFIGURE
218219
static int neorv32_uart_config_get(const struct device *dev, struct uart_config *cfg)
219220
{
220221
struct neorv32_uart_data *data = dev->data;
@@ -225,6 +226,7 @@ static int neorv32_uart_config_get(const struct device *dev, struct uart_config
225226

226227
return 0;
227228
}
229+
#endif /* CONFIG_UART_USE_RUNTIME_CONFIGURE */
228230

229231
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
230232
static int neorv32_uart_fifo_fill(const struct device *dev, const uint8_t *tx_data, int size)

0 commit comments

Comments
 (0)