Commit 27dfddc7 authored by Archit Taneja's avatar Archit Taneja

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: default avatarArchit Taneja <archit@ti.com>
parent a2496dc9
...@@ -1302,7 +1302,7 @@ int dss_mgr_unset_device(struct omap_overlay_manager *mgr) ...@@ -1302,7 +1302,7 @@ int dss_mgr_unset_device(struct omap_overlay_manager *mgr)
} }
static void dss_apply_mgr_timings(struct omap_overlay_manager *mgr, 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); struct mgr_priv_data *mp = get_mgr_priv(mgr);
...@@ -1311,7 +1311,7 @@ static void dss_apply_mgr_timings(struct omap_overlay_manager *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, void dss_mgr_set_timings(struct omap_overlay_manager *mgr,
struct omap_video_timings *timings) const struct omap_video_timings *timings)
{ {
unsigned long flags; unsigned long flags;
......
...@@ -206,7 +206,7 @@ int dss_mgr_set_device(struct omap_overlay_manager *mgr, ...@@ -206,7 +206,7 @@ int dss_mgr_set_device(struct omap_overlay_manager *mgr,
struct omap_dss_device *dssdev); struct omap_dss_device *dssdev);
int dss_mgr_unset_device(struct omap_overlay_manager *mgr); int dss_mgr_unset_device(struct omap_overlay_manager *mgr);
void dss_mgr_set_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);
void dss_mgr_set_lcd_config(struct omap_overlay_manager *mgr, void dss_mgr_set_lcd_config(struct omap_overlay_manager *mgr,
const struct dss_lcd_mgr_config *config); const struct dss_lcd_mgr_config *config);
const struct omap_video_timings *dss_mgr_get_timings(struct omap_overlay_manager *mgr); const struct omap_video_timings *dss_mgr_get_timings(struct omap_overlay_manager *mgr);
......
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