Skip to content

Commit d3da5e6

Browse files
KerogitAlan C. Assis
authored andcommitted
arch/avr/avrdx/avrdx_serial: make uart_ops_s structure const
The structure never changes and should be therefore marked as const. Signed-off-by: Kerogit <[email protected]>
1 parent d926911 commit d3da5e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/avr/src/avrdx/avrdx_serial.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ static const IOBJ uint8_t avrdx_usart_dre_interrupts[] =
184184

185185
/* USARTn operations - common for all ports */
186186

187-
static struct uart_ops_s g_usart_ops =
187+
static const struct uart_ops_s g_usart_ops =
188188
{
189189
.setup = avrdx_usart_setup,
190190
.shutdown = avrdx_usart_shutdown,

0 commit comments

Comments
 (0)