]> git.karo-electronics.de Git - karo-tx-linux.git/commit
serial/mpc52xx_uart: add a const qualifier
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 21 May 2012 19:57:39 +0000 (21:57 +0200)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 23 Jul 2012 15:45:07 +0000 (17:45 +0200)
commit915d912b167827b6f4112ddbe1c5dd2cbedc3748
treea14cb99a6c4e2ffde8ba400671b529f6dd963ca0
parentb14ed4c87351a52ff7aca3e55f23cfd553ac1084
serial/mpc52xx_uart: add a const qualifier

This prepares *of_device_id.data becoming const. Without this change
the following warning would occur:

drivers/tty/serial/mpc52xx_uart.c: In function 'mpc52xx_uart_of_enumerate':
drivers/tty/serial/mpc52xx_uart.c:1440:11: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
drivers/tty/serial/mpc52xx_uart.c