提交 85a8c622 编写于 作者: T Tomi Valkeinen

drm/omap: convert dss_mgr_enable to accept omap_channel

We are removing uses of 'struct omap_overlay_manager'. This patch
changes dss_mgr_enable() to accept 'enum omap_channel' instead of
'struct omap_overlay_manager'.
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 bb772e1a
......@@ -390,7 +390,7 @@ static void dispc_error_worker(struct work_struct *work)
ovl->disable(ovl);
}
dss_mgr_enable(mgr);
dss_mgr_enable(mgr->id);
}
}
......
......@@ -429,7 +429,7 @@ static int dpi_display_enable(struct omap_dss_device *dssdev)
mdelay(2);
r = dss_mgr_enable(out->manager);
r = dss_mgr_enable(out->manager->id);
if (r)
goto err_mgr_enable;
......
......@@ -3876,7 +3876,7 @@ static int dsi_enable_video_output(struct omap_dss_device *dssdev, int channel)
dsi_if_enable(dsidev, true);
}
r = dss_mgr_enable(mgr);
r = dss_mgr_enable(mgr->id);
if (r)
goto err_mgr_enable;
......
......@@ -219,7 +219,7 @@ static int hdmi_power_on_full(struct omap_dss_device *dssdev)
/* tv size */
dss_mgr_set_timings(mgr->id, p);
r = dss_mgr_enable(mgr);
r = dss_mgr_enable(mgr->id);
if (r)
goto err_mgr_enable;
......
......@@ -236,7 +236,7 @@ static int hdmi_power_on_full(struct omap_dss_device *dssdev)
/* tv size */
dss_mgr_set_timings(mgr->id, p);
r = dss_mgr_enable(mgr);
r = dss_mgr_enable(mgr->id);
if (r)
goto err_mgr_enable;
......
......@@ -90,7 +90,7 @@ void dss_mgr_set_timings(enum omap_channel channel,
const struct omap_video_timings *timings);
void dss_mgr_set_lcd_config(enum omap_channel channel,
const struct dss_lcd_mgr_config *config);
int dss_mgr_enable(struct omap_overlay_manager *mgr);
int dss_mgr_enable(enum omap_channel channel);
void dss_mgr_disable(struct omap_overlay_manager *mgr);
void dss_mgr_start_update(struct omap_overlay_manager *mgr);
int dss_mgr_register_framedone_handler(struct omap_overlay_manager *mgr,
......
......@@ -216,9 +216,9 @@ void dss_mgr_set_lcd_config(enum omap_channel channel,
}
EXPORT_SYMBOL(dss_mgr_set_lcd_config);
int dss_mgr_enable(struct omap_overlay_manager *mgr)
int dss_mgr_enable(enum omap_channel channel)
{
return dss_mgr_ops->enable(mgr->id);
return dss_mgr_ops->enable(channel);
}
EXPORT_SYMBOL(dss_mgr_enable);
......
......@@ -196,7 +196,7 @@ static int sdi_display_enable(struct omap_dss_device *dssdev)
goto err_sdi_enable;
mdelay(2);
r = dss_mgr_enable(out->manager);
r = dss_mgr_enable(out->manager->id);
if (r)
goto err_mgr_enable;
......
......@@ -475,7 +475,7 @@ static int venc_power_on(struct omap_dss_device *dssdev)
if (r)
goto err1;
r = dss_mgr_enable(mgr);
r = dss_mgr_enable(mgr->id);
if (r)
goto err2;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册