]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
OMAPDSS: APPLY: Constify timings argument in dss_mgr_set_timings
authorArchit Taneja <archit@ti.com>
Thu, 19 Jul 2012 08:21:14 +0000 (13:51 +0530)
committerArchit Taneja <archit@ti.com>
Mon, 13 Aug 2012 10:14:39 +0000 (15:44 +0530)
The function dss_mgr_set_timings is supposed to apply timings passed by an
interface driver. It is not supposed to change the timings. Add const qualifier
to the omap_video_timings pointer argument in dss_mgr_set_timings().

Signed-off-by: Archit Taneja <archit@ti.com>
drivers/video/omap2/dss/apply.c
drivers/video/omap2/dss/dss.h

index 0fefc68372b93ca326b9c194f4529fd201b6161c..52a5940a3773c2f73e5585abda2c09cf01be7875 100644 (file)
@@ -1302,7 +1302,7 @@ err:
 }
 
 static void dss_apply_mgr_timings(struct omap_overlay_manager *mgr,
-               struct omap_video_timings *timings)
+               const struct omap_video_timings *timings)
 {
        struct mgr_priv_data *mp = get_mgr_priv(mgr);
 
@@ -1311,7 +1311,7 @@ static void dss_apply_mgr_timings(struct omap_overlay_manager *mgr,
 }
 
 void dss_mgr_set_timings(struct omap_overlay_manager *mgr,
-               struct omap_video_timings *timings)
+               const struct omap_video_timings *timings)
 {
        unsigned long flags;
 
index f67afe76f217f01c1aea097b49e26fefd0af0ce2..3682e3f78426a89c8dc27973a8b3ebd2d05c8273 100644 (file)
@@ -206,7 +206,7 @@ int dss_mgr_set_device(struct omap_overlay_manager *mgr,
                struct omap_dss_device *dssdev);
 int dss_mgr_unset_device(struct omap_overlay_manager *mgr);
 void dss_mgr_set_timings(struct omap_overlay_manager *mgr,
-               struct omap_video_timings *timings);
+               const struct omap_video_timings *timings);
 void dss_mgr_set_lcd_config(struct omap_overlay_manager *mgr,
                const struct dss_lcd_mgr_config *config);
 const struct omap_video_timings *dss_mgr_get_timings(struct omap_overlay_manager *mgr);