]> git.karo-electronics.de Git - karo-tx-linux.git/commit
spi/imx: make spi_imx_data.devtype_data member point to const data
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 21 May 2012 19:49:35 +0000 (21:49 +0200)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 12 Jul 2012 18:38:48 +0000 (20:38 +0200)
commit8bcb22c1c4d82acd032262e8d82ca0a275c35a2b
treedfe317b012ae839633878e4eb304ccdc7fad1cb6
parentbd0a521e88aa7a06ae7aabaed7ae196ed4ad867a
spi/imx: make spi_imx_data.devtype_data member point to const data

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

drivers/spi/spi-imx.c: In function spi_imx_probe:
drivers/spi/spi-imx.c:814:24: warning: assignment discards const qualifier from pointer target type [enabled by default]

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
drivers/spi/spi-imx.c