diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2013-10-26 16:57:31 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2014-01-20 10:05:08 +0100 |
commit | 7da903ef04851aba81e4ddabf65c15fb71b7ce47 (patch) | |
tree | 391586f05bee51b1874ebadcbdcb465646d6e03d /include/drm | |
parent | drm: Pass the display mode to drm_calc_timestamping_constants() (diff) | |
download | linux-7da903ef04851aba81e4ddabf65c15fb71b7ce47.tar.xz linux-7da903ef04851aba81e4ddabf65c15fb71b7ce47.zip |
drm: Pass the display mode to drm_calc_vbltimestamp_from_scanoutpos()
Rather than using crtc->hwmode, just pass the relevant mode to
drm_calc_vbltimestamp_from_scanoutpos(). This removes the last hwmode
usage from core drm.
Reviewed-by: mario.kleiner.de@gmail.com
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drmP.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 46bf8ae7e302..3f57c77acef8 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -1401,7 +1401,8 @@ extern int drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev, int crtc, int *max_error, struct timeval *vblank_time, unsigned flags, - struct drm_crtc *refcrtc); + const struct drm_crtc *refcrtc, + const struct drm_display_mode *mode); extern void drm_calc_timestamping_constants(struct drm_crtc *crtc, const struct drm_display_mode *mode); |