diff options
author | Archit Taneja <archit@ti.com> | 2012-07-19 04:21:14 -0400 |
---|---|---|
committer | Archit Taneja <archit@ti.com> | 2012-08-13 06:14:39 -0400 |
commit | 27dfddc7fe3bbc87935c078f3d078a9ed69dbf4a (patch) | |
tree | 0c1f6d1607c274951970541c9e3113e3fb059683 /drivers/video | |
parent | a2496dc9427a4f8d7db47a09ac9bb194b233fe88 (diff) |
OMAPDSS: APPLY: Constify timings argument in dss_mgr_set_timings
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>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/omap2/dss/apply.c | 4 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dss.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/omap2/dss/apply.c b/drivers/video/omap2/dss/apply.c index 0fefc68372b9..52a5940a3773 100644 --- a/drivers/video/omap2/dss/apply.c +++ b/drivers/video/omap2/dss/apply.c | |||
@@ -1302,7 +1302,7 @@ err: | |||
1302 | } | 1302 | } |
1303 | 1303 | ||
1304 | static void dss_apply_mgr_timings(struct omap_overlay_manager *mgr, | 1304 | static void dss_apply_mgr_timings(struct omap_overlay_manager *mgr, |
1305 | struct omap_video_timings *timings) | 1305 | const struct omap_video_timings *timings) |
1306 | { | 1306 | { |
1307 | struct mgr_priv_data *mp = get_mgr_priv(mgr); | 1307 | struct mgr_priv_data *mp = get_mgr_priv(mgr); |
1308 | 1308 | ||
@@ -1311,7 +1311,7 @@ static void dss_apply_mgr_timings(struct omap_overlay_manager *mgr, | |||
1311 | } | 1311 | } |
1312 | 1312 | ||
1313 | void dss_mgr_set_timings(struct omap_overlay_manager *mgr, | 1313 | void dss_mgr_set_timings(struct omap_overlay_manager *mgr, |
1314 | struct omap_video_timings *timings) | 1314 | const struct omap_video_timings *timings) |
1315 | { | 1315 | { |
1316 | unsigned long flags; | 1316 | unsigned long flags; |
1317 | 1317 | ||
diff --git a/drivers/video/omap2/dss/dss.h b/drivers/video/omap2/dss/dss.h index f67afe76f217..3682e3f78426 100644 --- a/drivers/video/omap2/dss/dss.h +++ b/drivers/video/omap2/dss/dss.h | |||
@@ -206,7 +206,7 @@ int dss_mgr_set_device(struct omap_overlay_manager *mgr, | |||
206 | struct omap_dss_device *dssdev); | 206 | struct omap_dss_device *dssdev); |
207 | int dss_mgr_unset_device(struct omap_overlay_manager *mgr); | 207 | int dss_mgr_unset_device(struct omap_overlay_manager *mgr); |
208 | void dss_mgr_set_timings(struct omap_overlay_manager *mgr, | 208 | void dss_mgr_set_timings(struct omap_overlay_manager *mgr, |
209 | struct omap_video_timings *timings); | 209 | const struct omap_video_timings *timings); |
210 | void dss_mgr_set_lcd_config(struct omap_overlay_manager *mgr, | 210 | void dss_mgr_set_lcd_config(struct omap_overlay_manager *mgr, |
211 | const struct dss_lcd_mgr_config *config); | 211 | const struct dss_lcd_mgr_config *config); |
212 | const struct omap_video_timings *dss_mgr_get_timings(struct omap_overlay_manager *mgr); | 212 | const struct omap_video_timings *dss_mgr_get_timings(struct omap_overlay_manager *mgr); |