Skip to content

Commit

Permalink
serial/uart_atmel_sam3: Make driver_api structure const.
Browse files Browse the repository at this point in the history
Change-Id: I745bf7060e4ae0fff5fd4c917d4b979dde1201e9
Signed-off-by: Marcus Shawcroft <[email protected]>
  • Loading branch information
mshawcroft authored and Anas Nashif committed Oct 25, 2016
1 parent 610e913 commit 800c872
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/serial/uart_atmel_sam3.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ struct uart_sam3_dev_data_t {
#define UART_PDC_PTCR_RXTDIS (1 << 1)
#define UART_PDC_PTCR_TXTDIS (1 << 9)

static struct uart_driver_api uart_sam3_driver_api;
static const struct uart_driver_api uart_sam3_driver_api;

/**
* @brief Set the baud rate
Expand Down Expand Up @@ -243,7 +243,7 @@ static unsigned char uart_sam3_poll_out(struct device *dev,
return c;
}

static struct uart_driver_api uart_sam3_driver_api = {
static const struct uart_driver_api uart_sam3_driver_api = {
.poll_in = uart_sam3_poll_in,
.poll_out = uart_sam3_poll_out,
};
Expand Down

0 comments on commit 800c872

Please sign in to comment.