omapfb: constify omap_video_timings structures

These omap_video_timings structures are only copied into other
structures, so they can be const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
This commit is contained in:
Julia Lawall 2017-08-21 16:49:59 +02:00 committed by Bartlomiej Zolnierkiewicz
parent 7af9a52e33
commit aa55457d26
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@
#include <video/omapfb_dss.h>
static struct omap_video_timings lb035q02_timings = {
static const struct omap_video_timings lb035q02_timings = {
.x_res = 320,
.y_res = 240,

View File

@ -41,7 +41,7 @@ struct panel_drv_data {
struct spi_device *spi_dev;
};
static struct omap_video_timings td028ttec1_panel_timings = {
static const struct omap_video_timings td028ttec1_panel_timings = {
.x_res = 480,
.y_res = 640,
.pixelclock = 22153000,