From: Krzysztof Kozlowski Date: Fri, 1 May 2015 15:44:04 +0000 (+0900) Subject: spi: imx: Constify platform_device_id X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=db1b8200e0d0ff8102a1836e4bd6baf1be4f564d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Mark Brown --- 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,