STM32 serial: MAke uart_devs[] const. From Freddie Chopin

This commit is contained in:
Gregory Nutt
2014-08-22 16:20:52 -06:00
parent 52b3735310
commit 01566dd322
+1 -1
View File
@@ -988,7 +988,7 @@ static struct up_dev_s g_uart8priv =
/* This table lets us iterate over the configured USARTs */ /* This table lets us iterate over the configured USARTs */
static struct up_dev_s *uart_devs[STM32_NUSART] = static struct up_dev_s * const uart_devs[STM32_NUSART] =
{ {
#ifdef CONFIG_STM32_USART1 #ifdef CONFIG_STM32_USART1
[0] = &g_usart1priv, [0] = &g_usart1priv,