From: Uwe Kleine-König Date: Mon, 21 May 2012 19:49:35 +0000 (+0200) Subject: spi/imx: make spi_imx_data.devtype_data member point to const data X-Git-Tag: next-20120725~11^2^2^2~24 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8bcb22c1c4d82acd032262e8d82ca0a275c35a2b;p=karo-tx-linux.git 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 --- diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index 47877d687614..b09fc77993cc 100644 --- a/drivers/spi/spi-imx.c +++ b/drivers/spi/spi-imx.c @@ -97,7 +97,7 @@ struct spi_imx_data { const void *tx_buf; unsigned int txfifo; /* number of words pushed in tx FIFO */ - struct spi_imx_devtype_data *devtype_data; + const struct spi_imx_devtype_data *devtype_data; int chipselect[0]; };