drm/omap: Make the video_mode pointer to .set_timings() const
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 4 Jun 2018 15:29:01 +0000 (18:29 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 3 Sep 2018 13:13:29 +0000 (16:13 +0300)
The .set_timings() operations of the omap_dss_device instances don't
need to modify the passed timings. Make the pointer const.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
19 files changed:
drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c
drivers/gpu/drm/omapdrm/displays/connector-dvi.c
drivers/gpu/drm/omapdrm/displays/connector-hdmi.c
drivers/gpu/drm/omapdrm/displays/encoder-opa362.c
drivers/gpu/drm/omapdrm/displays/encoder-tfp410.c
drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c
drivers/gpu/drm/omapdrm/displays/panel-dpi.c
drivers/gpu/drm/omapdrm/displays/panel-lgphilips-lb035q02.c
drivers/gpu/drm/omapdrm/displays/panel-nec-nl8048hl11.c
drivers/gpu/drm/omapdrm/displays/panel-sharp-ls037v7dw01.c
drivers/gpu/drm/omapdrm/displays/panel-sony-acx565akm.c
drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c
drivers/gpu/drm/omapdrm/displays/panel-tpo-td043mtea1.c
drivers/gpu/drm/omapdrm/dss/dpi.c
drivers/gpu/drm/omapdrm/dss/hdmi4.c
drivers/gpu/drm/omapdrm/dss/hdmi5.c
drivers/gpu/drm/omapdrm/dss/omapdss.h
drivers/gpu/drm/omapdrm/dss/sdi.c
drivers/gpu/drm/omapdrm/dss/venc.c

index 563fc7e618b3eea3f8be514ffaa45cc1ac53c07a..22bc2e734b0b966505f28f81f8768359582dd173 100644 (file)
@@ -93,7 +93,7 @@ static void tvc_disable(struct omap_dss_device *dssdev)
 }
 
 static void tvc_set_timings(struct omap_dss_device *dssdev,
-                           struct videomode *vm)
+                           const struct videomode *vm)
 {
        struct panel_drv_data *ddata = to_panel_data(dssdev);
        struct omap_dss_device *src = dssdev->src;
index eae4108330f1a4b423ec0b420b7eed5ec18ce9e2..8f953303ece6914b2978b746e80374a130ff5e0c 100644 (file)
@@ -103,7 +103,7 @@ static void dvic_disable(struct omap_dss_device *dssdev)
 }
 
 static void dvic_set_timings(struct omap_dss_device *dssdev,
-                            struct videomode *vm)
+                            const struct videomode *vm)
 {
        struct panel_drv_data *ddata = to_panel_data(dssdev);
        struct omap_dss_device *src = dssdev->src;
index fe6d2923ed816ae786ec62d45cfdadf418148c44..1cbc593c79ffd7afa60b39d71095a2fe9e0792f4 100644 (file)
@@ -98,7 +98,7 @@ static void hdmic_disable(struct omap_dss_device *dssdev)
 }
 
 static void hdmic_set_timings(struct omap_dss_device *dssdev,
-                             struct videomode *vm)
+                             const struct videomode *vm)
 {
        struct panel_drv_data *ddata = to_panel_data(dssdev);
        struct omap_dss_device *src = dssdev->src;
index 3243e5f9bd06a0ed515770372b42da7ea74bf4f2..19d1804e3fe5e8156d2a38f0c8bb1d2f229c8e0c 100644 (file)
@@ -90,7 +90,7 @@ static void opa362_disable(struct omap_dss_device *dssdev)
 }
 
 static void opa362_set_timings(struct omap_dss_device *dssdev,
-                              struct videomode *vm)
+                              const struct videomode *vm)
 {
        struct panel_drv_data *ddata = to_panel_data(dssdev);
        struct omap_dss_device *src = dssdev->src;
index 54f133d7da073c7c07a4b002845448da16ec806a..fa6ed1e8649de54e167a0f9cd40fdaa799ed29d0 100644 (file)
@@ -87,7 +87,7 @@ static void tfp410_fix_timings(struct videomode *vm)
 }
 
 static void tfp410_set_timings(struct omap_dss_device *dssdev,
-                              struct videomode *vm)
+                              const struct videomode *vm)
 {
        struct panel_drv_data *ddata = to_panel_data(dssdev);
        struct omap_dss_device *src = dssdev->src;
index babaac8560679fc170e4c498700091ef5363404e..21c2667f9f069b3312010448cd942c9be4ce7b9f 100644 (file)
@@ -97,7 +97,7 @@ static void tpd_disable(struct omap_dss_device *dssdev)
 }
 
 static void tpd_set_timings(struct omap_dss_device *dssdev,
-                           struct videomode *vm)
+                           const struct videomode *vm)
 {
        struct panel_drv_data *ddata = to_panel_data(dssdev);
        struct omap_dss_device *src = dssdev->src;
index c03877af9cdb0f727d2feddf83bb1ec37513fcb1..b2f17b2a93b2d66c67d96831e004fcffb4b5b6ea 100644 (file)
@@ -96,7 +96,7 @@ static void panel_dpi_disable(struct omap_dss_device *dssdev)
 }
 
 static void panel_dpi_set_timings(struct omap_dss_device *dssdev,
-                                 struct videomode *vm)
+                                 const struct videomode *vm)
 {
        struct panel_drv_data *ddata = to_panel_data(dssdev);
        struct omap_dss_device *src = dssdev->src;
index 62576e4f89e350109467a55444144bba812e7ba2..1121d1eba76bface894bcd7217d5dd2b3424dda7 100644 (file)
@@ -173,7 +173,7 @@ static void lb035q02_disable(struct omap_dss_device *dssdev)
 }
 
 static void lb035q02_set_timings(struct omap_dss_device *dssdev,
-                                struct videomode *vm)
+                                const struct videomode *vm)
 {
        struct panel_drv_data *ddata = to_panel_data(dssdev);
        struct omap_dss_device *src = dssdev->src;
index 9f34cf02a11431710bb85910f6240c6aeb7ebe2c..248a8f1ea7dfa96cc6ee7b270bd230a835b7df12 100644 (file)
@@ -161,7 +161,7 @@ static void nec_8048_disable(struct omap_dss_device *dssdev)
 }
 
 static void nec_8048_set_timings(struct omap_dss_device *dssdev,
-                                struct videomode *vm)
+                                const struct videomode *vm)
 {
        struct panel_drv_data *ddata = to_panel_data(dssdev);
        struct omap_dss_device *src = dssdev->src;
index 9ee6b8376916ded84b10e2b200a8a4c7554ee630..ef696e1e7d4532456f2353044dd7ab81a7e10d1f 100644 (file)
@@ -135,7 +135,7 @@ static void sharp_ls_disable(struct omap_dss_device *dssdev)
 }
 
 static void sharp_ls_set_timings(struct omap_dss_device *dssdev,
-                                struct videomode *vm)
+                                const struct videomode *vm)
 {
        struct panel_drv_data *ddata = to_panel_data(dssdev);
        struct omap_dss_device *src = dssdev->src;
index d0a8d2810c3311329e20bf7038bbcd40bbd2321b..7be58da1075f68dd882333b22eef304d1f8b060c 100644 (file)
@@ -634,7 +634,7 @@ static void acx565akm_disable(struct omap_dss_device *dssdev)
 }
 
 static void acx565akm_set_timings(struct omap_dss_device *dssdev,
-                                 struct videomode *vm)
+                                 const struct videomode *vm)
 {
        struct panel_drv_data *ddata = to_panel_data(dssdev);
        struct omap_dss_device *src = dssdev->src;
index 1b0e42daa296f8aa564b32bfdd7206e04ed0dd03..087f62f4311bf2a3b2039f20fefdeec1fddf6144 100644 (file)
@@ -304,7 +304,7 @@ static void td028ttec1_panel_disable(struct omap_dss_device *dssdev)
 }
 
 static void td028ttec1_panel_set_timings(struct omap_dss_device *dssdev,
-                                        struct videomode *vm)
+                                        const struct videomode *vm)
 {
        struct panel_drv_data *ddata = to_panel_data(dssdev);
        struct omap_dss_device *src = dssdev->src;
index b211a7809a2605f80b53381f87e53961c2b4ad2b..7bc602dfb84a9c8223cb8ec68c8849f65364c054 100644 (file)
@@ -378,7 +378,7 @@ static void tpo_td043_disable(struct omap_dss_device *dssdev)
 }
 
 static void tpo_td043_set_timings(struct omap_dss_device *dssdev,
-                                 struct videomode *vm)
+                                 const struct videomode *vm)
 {
        struct panel_drv_data *ddata = to_panel_data(dssdev);
        struct omap_dss_device *src = dssdev->src;
index f61e3e3186b4a0cd23b148553dd9ec22bf13c3c5..58237decb5a81b7aff2dddde3ea7959e78ba7868 100644 (file)
@@ -479,7 +479,7 @@ static void dpi_display_disable(struct omap_dss_device *dssdev)
 }
 
 static void dpi_set_timings(struct omap_dss_device *dssdev,
-                           struct videomode *vm)
+                           const struct videomode *vm)
 {
        struct dpi_data *dpi = dpi_get_data_from_dssdev(dssdev);
 
index 73ca79471ce4c8347696c2cee956ca11c048c8ca..a66bdbe3b969131baf31c6a2827839f9d07ed7f8 100644 (file)
@@ -263,7 +263,7 @@ static int hdmi_display_check_timings(struct omap_dss_device *dssdev,
 }
 
 static void hdmi_display_set_timings(struct omap_dss_device *dssdev,
-                                    struct videomode *vm)
+                                    const struct videomode *vm)
 {
        struct omap_hdmi *hdmi = dssdev_to_hdmi(dssdev);
 
index 259cd39d0c1d7283b0daf5d7fedf834e85d26da3..d63831c9eacf1b80700719ac6f6288e9a564e588 100644 (file)
@@ -262,7 +262,7 @@ static int hdmi_display_check_timings(struct omap_dss_device *dssdev,
 }
 
 static void hdmi_display_set_timings(struct omap_dss_device *dssdev,
-                                    struct videomode *vm)
+                                    const struct videomode *vm)
 {
        struct omap_hdmi *hdmi = dssdev_to_hdmi(dssdev);
 
index ecefc1b193ca814d82c0e6adb7deb2397be24fe2..87306014a53a41bfc850bef16d1ed3b620814265 100644 (file)
@@ -368,7 +368,7 @@ struct omap_dss_device_ops {
        void (*get_timings)(struct omap_dss_device *dssdev,
                            struct videomode *vm);
        void (*set_timings)(struct omap_dss_device *dssdev,
-                           struct videomode *vm);
+                           const struct videomode *vm);
 
        bool (*detect)(struct omap_dss_device *dssdev);
 
index 8d46f44bcb7dfe955706398a56722e409f6d162e..3b5f979324753f675edc11f6c682a43c729aac5a 100644 (file)
@@ -230,7 +230,7 @@ static void sdi_display_disable(struct omap_dss_device *dssdev)
 }
 
 static void sdi_set_timings(struct omap_dss_device *dssdev,
-                           struct videomode *vm)
+                           const struct videomode *vm)
 {
        struct sdi_device *sdi = dssdev_to_sdi(dssdev);
 
index 100a02a9447f2a8489ffd51ebe853ef59ec5ad14..255bf2cd8afc609363e667748bf0a88dc68c778f 100644 (file)
@@ -569,7 +569,7 @@ static void venc_display_disable(struct omap_dss_device *dssdev)
 }
 
 static void venc_set_timings(struct omap_dss_device *dssdev,
-                            struct videomode *vm)
+                            const struct videomode *vm)
 {
        struct venc_device *venc = dssdev_to_venc(dssdev);
        struct videomode actual_vm;