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:
parent
95d962cfed
commit
7eddbaa21e
1 changed files with 2 additions and 2 deletions
|
@ -153,7 +153,7 @@ struct uart_stellaris_dev_data_t {
|
|||
#define UARTMIS_RXMIS 0x00000010
|
||||
#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
|
||||
|
@ -611,7 +611,7 @@ void uart_stellaris_isr(void *arg)
|
|||
#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_out = uart_stellaris_poll_out,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue