summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>2015-05-01 17:44:04 +0200
committerMark Brown <broonie@kernel.org>2015-05-01 18:37:26 +0200
commitdb1b8200e0d0ff8102a1836e4bd6baf1be4f564d (patch)
treeb0b1ce2288aea73076f6b4c2512a71cdaaceea16
parentLinux 4.1-rc1 (diff)
downloadlinux-db1b8200e0d0ff8102a1836e4bd6baf1be4f564d.tar.xz
linux-db1b8200e0d0ff8102a1836e4bd6baf1be4f564d.zip
spi: imx: Constify platform_device_id
The platform_device_id is not modified by the driver and core uses it as const. Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/spi/spi-imx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c
index f08e812b2984..eb7d3a6fb14c 100644
--- a/drivers/spi/spi-imx.c
+++ b/drivers/spi/spi-imx.c
@@ -674,7 +674,7 @@ static struct spi_imx_devtype_data imx51_ecspi_devtype_data = {
.devtype = IMX51_ECSPI,
};
-static struct platform_device_id spi_imx_devtype[] = {
+static const struct platform_device_id spi_imx_devtype[] = {
{
.name = "imx1-cspi",
.driver_data = (kernel_ulong_t) &imx1_cspi_devtype_data,