serial/uart_stellaris: Make driver_api structure const.

Change-Id: I24406298b0928f7dbc154272a32293ecdc04a5d5
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
Marcus Shawcroft 2016-10-24 08:38:39 +01:00 committed by Anas Nashif
commit 7eddbaa21e

View file

@ -153,7 +153,7 @@ struct uart_stellaris_dev_data_t {
#define UARTMIS_RXMIS 0x00000010 #define UARTMIS_RXMIS 0x00000010
#define UARTMIS_TXMIS 0x00000020 #define UARTMIS_TXMIS 0x00000020
static struct uart_driver_api uart_stellaris_driver_api; static const struct uart_driver_api uart_stellaris_driver_api;
/** /**
* @brief Set the baud rate * @brief Set the baud rate
@ -611,7 +611,7 @@ void uart_stellaris_isr(void *arg)
#endif /* CONFIG_UART_INTERRUPT_DRIVEN */ #endif /* CONFIG_UART_INTERRUPT_DRIVEN */
static struct uart_driver_api uart_stellaris_driver_api = { static const struct uart_driver_api uart_stellaris_driver_api = {
.poll_in = uart_stellaris_poll_in, .poll_in = uart_stellaris_poll_in,
.poll_out = uart_stellaris_poll_out, .poll_out = uart_stellaris_poll_out,