File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
drivers/gpu/drm/i915/display Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 68
68
u32 i915_get_vblank_counter (struct drm_crtc * crtc )
69
69
{
70
70
struct drm_i915_private * dev_priv = to_i915 (crtc -> dev );
71
- struct drm_vblank_crtc * vblank = & dev_priv -> drm . vblank [ drm_crtc_index (crtc )] ;
71
+ struct drm_vblank_crtc * vblank = drm_crtc_vblank_crtc (crtc );
72
72
const struct drm_display_mode * mode = & vblank -> hwmode ;
73
73
enum pipe pipe = to_intel_crtc (crtc )-> pipe ;
74
74
u32 pixel , vbl_start , hsync_start , htotal ;
@@ -120,7 +120,7 @@ u32 i915_get_vblank_counter(struct drm_crtc *crtc)
120
120
u32 g4x_get_vblank_counter (struct drm_crtc * crtc )
121
121
{
122
122
struct drm_i915_private * dev_priv = to_i915 (crtc -> dev );
123
- struct drm_vblank_crtc * vblank = & dev_priv -> drm . vblank [ drm_crtc_index (crtc )] ;
123
+ struct drm_vblank_crtc * vblank = drm_crtc_vblank_crtc (crtc );
124
124
enum pipe pipe = to_intel_crtc (crtc )-> pipe ;
125
125
126
126
if (!vblank -> max_vblank_count )
You can’t perform that action at this time.
0 commit comments