drm/omap: omap_display_timings: constify videomode structures
authorJulia Lawall <Julia.Lawall@lip6.fr>
Fri, 4 Aug 2017 06:09:53 +0000 (08:09 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 15 Aug 2017 12:18:25 +0000 (15:18 +0300)
The videomode structures are only copied into the vm field of a
panel_drv_data structure, so they can be const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/displays/panel-lgphilips-lb035q02.c
drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c

index c90474afaebd278ef70a2f3a5cf4fab4edee20fa..74d13969b9ca7c0c5b187c27b77a6780ffb7bcd8 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "../dss/omapdss.h"
 
-static struct videomode lb035q02_vm = {
+static const struct videomode lb035q02_vm = {
        .hactive = 320,
        .vactive = 240,
 
index cbf4c67c493386261f7d540fc61fdd175d5ef713..0a38a0e8c925c3901da5573f8c20d3f049398c34 100644 (file)
@@ -40,7 +40,7 @@ struct panel_drv_data {
        struct spi_device *spi_dev;
 };
 
-static struct videomode td028ttec1_panel_vm = {
+static const struct videomode td028ttec1_panel_vm = {
        .hactive        = 480,
        .vactive        = 640,
        .pixelclock     = 22153000,