From d3ea539afcd848bf8c8db50fc647c7958339132f Mon Sep 17 00:00:00 2001 From: Marcus Shawcroft Date: Mon, 24 Oct 2016 08:38:49 +0100 Subject: [PATCH] serial/uart_stm32: Make driver_api structure const. Change-Id: Ia877269952839299c2de12a08d56be9a809fd12c Signed-off-by: Marcus Shawcroft --- drivers/serial/uart_stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/uart_stm32.c b/drivers/serial/uart_stm32.c index 94d05f348fe..757a978f157 100644 --- a/drivers/serial/uart_stm32.c +++ b/drivers/serial/uart_stm32.c @@ -246,7 +246,7 @@ static void uart_stm32_isr(void *arg) #endif /* CONFIG_UART_INTERRUPT_DRIVEN */ -static struct uart_driver_api uart_stm32_driver_api = { +static const struct uart_driver_api uart_stm32_driver_api = { .poll_in = uart_stm32_poll_in, .poll_out = uart_stm32_poll_out, #ifdef CONFIG_UART_INTERRUPT_DRIVEN