OMAPDSS: DISPC: Remove usage of dispc_mgr_get_device()
The functions calc_fclk_five_taps() and check_horiz_timing_omap3() use the function dispc_mgr_get_device() to get the omap_dss_device pointer to which the manager is connected, the width of the panel is derived from that. The manager's timing is stored in it's private data in APPLY. This contains the latest timings applied to the manager. Pass these timings to dispc_ovl_setup() and use them in the above functions. Remove the function dispc_mgr_get_device() as it isn't used any more. Signed-off-by: Archit Taneja <archit@ti.com>
This commit is contained in:

committed by
Tomi Valkeinen

parent
3fa03ba854
commit
81ab95b7ec
@@ -548,11 +548,13 @@ static void dss_ovl_write_regs(struct omap_overlay *ovl)
|
||||
|
||||
oi = &op->info;
|
||||
|
||||
mp = get_mgr_priv(ovl->manager);
|
||||
|
||||
replication = dss_use_replication(ovl->manager->device, oi->color_mode);
|
||||
|
||||
ilace = ovl->manager->device->type == OMAP_DISPLAY_TYPE_VENC;
|
||||
|
||||
r = dispc_ovl_setup(ovl->id, oi, ilace, replication);
|
||||
r = dispc_ovl_setup(ovl->id, oi, ilace, replication, &mp->timings);
|
||||
if (r) {
|
||||
/*
|
||||
* We can't do much here, as this function can be called from
|
||||
@@ -566,8 +568,6 @@ static void dss_ovl_write_regs(struct omap_overlay *ovl)
|
||||
return;
|
||||
}
|
||||
|
||||
mp = get_mgr_priv(ovl->manager);
|
||||
|
||||
op->info_dirty = false;
|
||||
if (mp->updating)
|
||||
op->shadow_info_dirty = true;
|
||||
|
Reference in New Issue
Block a user