spi: rspi: Constify platform_device_id
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Fri, 1 May 2015 15:44:05 +0000 (00:44 +0900)
committerMark Brown <broonie@kernel.org>
Fri, 1 May 2015 16:37:50 +0000 (17:37 +0100)
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>
drivers/spi/spi-rspi.c

index f6bac9e77d067390f29584595b2a219b69e749e4..70a7a7b168fdf7a51a8423c107cbe862bc7e441e 100644 (file)
@@ -1300,7 +1300,7 @@ error1:
        return ret;
 }
 
-static struct platform_device_id spi_driver_ids[] = {
+static const struct platform_device_id spi_driver_ids[] = {
        { "rspi",       (kernel_ulong_t)&rspi_ops },
        { "rspi-rz",    (kernel_ulong_t)&rspi_rz_ops },
        { "qspi",       (kernel_ulong_t)&qspi_ops },