提交 80023cb3 编写于 作者: U Uwe Kleine-König

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: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
上级 0d7614f0
......@@ -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];
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册