Commit fd4ba2ec authored by Julia Lawall's avatar Julia Lawall Committed by Tomi Valkeinen

drm/omap: omap_display_timings: constify videomode structures

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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 232ce608
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include "../dss/omapdss.h" #include "../dss/omapdss.h"
static struct videomode lb035q02_vm = { static const struct videomode lb035q02_vm = {
.hactive = 320, .hactive = 320,
.vactive = 240, .vactive = 240,
......
...@@ -40,7 +40,7 @@ struct panel_drv_data { ...@@ -40,7 +40,7 @@ struct panel_drv_data {
struct spi_device *spi_dev; struct spi_device *spi_dev;
}; };
static struct videomode td028ttec1_panel_vm = { static const struct videomode td028ttec1_panel_vm = {
.hactive = 480, .hactive = 480,
.vactive = 640, .vactive = 640,
.pixelclock = 22153000, .pixelclock = 22153000,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment