On Thu, 2012-05-03 at 12:37 +0530, Archit Taneja wrote: > In order to check the validity of overlay and manager info, there was a need to > use the omap_dss_device struct to get the panel resolution. The manager's > private data in APPLY now contains the manager timings. Hence, we don't need to > rely on the display resolution any more. > > Create a function dss_mgr_get_timings() which returns the timings in manager's > private data. Remove the need of passing omap_dss_device structs in the > functions which check for overlay and managers. > > Have some initial values for manager timings in apply_init(), these would ensure > that manager checks don't fail if an interface driver or a panel driver hasn't > set the manager timings yet. > > Signed-off-by: Archit Taneja <archit@xxxxxx> > +struct omap_video_timings *dss_mgr_get_timings(struct omap_overlay_manager *mgr) > +{ > + struct mgr_priv_data *mp = get_mgr_priv(mgr); > + > + return &mp->timings; > +} This one returns a pointer into apply.c's internal data structures. The safest way would be to return a copy, but as it's an omapdss internal function, I think it's enough to return a pointer to a const struct. Tomi
Attachment:
signature.asc
Description: This is a digitally signed message part