video: fbdev: imxfb: Constify platform_device_id
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Fri, 1 May 2015 15:38:39 +0000 (00:38 +0900)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 12 Jun 2015 09:40:27 +0000 (12:40 +0300)
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: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/imxfb.c

index 84d1d29e532cb6ceed4c698b16e249dc69476c36..cee88603efc9e40195430fe1a745eebefb97ef0b 100644 (file)
@@ -170,7 +170,7 @@ struct imxfb_info {
        struct regulator        *lcd_pwr;
 };
 
-static struct platform_device_id imxfb_devtype[] = {
+static const struct platform_device_id imxfb_devtype[] = {
        {
                .name = "imx1-fb",
                .driver_data = IMX1_FB,