diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2012-05-21 21:49:35 +0200 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2012-08-03 13:58:37 +0200 |
commit | 80023cb354725cd3319d81a8d7e6f88ad0253cfa (patch) | |
tree | e58a38f046361db12e1fcf79bb562c1c80ccbf6f /drivers/spi | |
parent | Linux 3.6-rc1 (diff) | |
download | linux-80023cb354725cd3319d81a8d7e6f88ad0253cfa.tar.xz linux-80023cb354725cd3319d81a8d7e6f88ad0253cfa.zip |
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>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-imx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index e834ff8c0188..3bd9c691b796 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]; }; |