Commit 4d199a55c41b25f4255eaeea358f944e33e91a4b

Authored by Tobias Klauser
Committed by Greg Kroah-Hartman
1 parent 864119917d

serial: altera: Make of_device_id arrays const

Make the of_device_id arrays const, as it is handled as const by all OF
functions.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

drivers/tty/serial/altera_jtaguart.c
... ... @@ -462,7 +462,7 @@
462 462 }
463 463  
464 464 #ifdef CONFIG_OF
465   -static struct of_device_id altera_jtaguart_match[] = {
  465 +static const struct of_device_id altera_jtaguart_match[] = {
466 466 { .compatible = "ALTR,juart-1.0", },
467 467 { .compatible = "altr,juart-1.0", },
468 468 {},
drivers/tty/serial/altera_uart.c
... ... @@ -610,7 +610,7 @@
610 610 }
611 611  
612 612 #ifdef CONFIG_OF
613   -static struct of_device_id altera_uart_match[] = {
  613 +static const struct of_device_id altera_uart_match[] = {
614 614 { .compatible = "ALTR,uart-1.0", },
615 615 { .compatible = "altr,uart-1.0", },
616 616 {},