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>
Fri, 3 Aug 2012 11:58:37 +0000 (13:58 +0200)
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

index e834ff8c0188281dc0fe25304c31df4294afde5f..3bd9c691b796d181557a8bd71dc645a586da9391 100644 (file)
@@ -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];
 };