serial/uart_nsim: Make driver_api const.
Change-Id: Iefa9afe9cfdbb40e27c6e27f28c26dfea042ca79 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
parent
2e71621149
commit
f84ce64390
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@
|
|||
|
||||
#define TXEMPTY 0x80 /* Transmit FIFO empty and next character can be sent */
|
||||
|
||||
static struct uart_driver_api uart_nsim_driver_api;
|
||||
static const struct uart_driver_api uart_nsim_driver_api;
|
||||
|
||||
/**
|
||||
* @brief Initialize fake serial port
|
||||
|
@ -78,7 +78,7 @@ static int uart_nsim_poll_in(struct device *dev, unsigned char *c)
|
|||
|
||||
}
|
||||
|
||||
static struct uart_driver_api uart_nsim_driver_api = {
|
||||
static const struct uart_driver_api uart_nsim_driver_api = {
|
||||
.poll_out = uart_nsim_poll_out,
|
||||
.poll_in = uart_nsim_poll_in,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue