serial/uart_nrf5: Make driver_api structure const.
Change-Id: I066702278afa0bbf6ce4bb916eb1780a8eb2d065 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
parent
6121f92f21
commit
f5bc9b12e7
1 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ struct uart_nrf5_dev_data_t {
|
||||||
#define UART_IRQ_MASK_TX (1 << 3)
|
#define UART_IRQ_MASK_TX (1 << 3)
|
||||||
#define UART_IRQ_MASK_ERROR (1 << 4)
|
#define UART_IRQ_MASK_ERROR (1 << 4)
|
||||||
|
|
||||||
static struct uart_driver_api uart_nrf5_driver_api;
|
static const struct uart_driver_api uart_nrf5_driver_api;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Set the baud rate
|
* @brief Set the baud rate
|
||||||
|
@ -462,7 +462,7 @@ void uart_nrf5_isr(void *arg)
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_UART_INTERRUPT_DRIVEN */
|
#endif /* CONFIG_UART_INTERRUPT_DRIVEN */
|
||||||
|
|
||||||
static struct uart_driver_api uart_nrf5_driver_api = {
|
static const struct uart_driver_api uart_nrf5_driver_api = {
|
||||||
.poll_in = uart_nrf5_poll_in, /** Console I/O function */
|
.poll_in = uart_nrf5_poll_in, /** Console I/O function */
|
||||||
.poll_out = uart_nrf5_poll_out, /** Console I/O function */
|
.poll_out = uart_nrf5_poll_out, /** Console I/O function */
|
||||||
.err_check = uart_nrf5_err_check, /** Console I/O function */
|
.err_check = uart_nrf5_err_check, /** Console I/O function */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue