Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/nouveau: Use drm_crtc_vblank_crtc()

Replace the open coded drm_crtc_vblank_crtc() with the real
thing.

Cc: Karol Herbst <kherbst@redhat.com>
Cc: Lyude Paul <lyude@redhat.com>
Cc: Danilo Krummrich <dakr@redhat.com>
Cc: nouveau@lists.freedesktop.org
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240408190611.24914-4-ville.syrjala@linux.intel.com
Reviewed-by: Lyude Paul <lyude@redhat.com>

+1 -1
+1 -1
drivers/gpu/drm/nouveau/nouveau_display.c
··· 83 83 nouveau_display_scanoutpos_head(struct drm_crtc *crtc, int *vpos, int *hpos, 84 84 ktime_t *stime, ktime_t *etime) 85 85 { 86 - struct drm_vblank_crtc *vblank = &crtc->dev->vblank[drm_crtc_index(crtc)]; 86 + struct drm_vblank_crtc *vblank = drm_crtc_vblank_crtc(crtc); 87 87 struct nvif_head *head = &nouveau_crtc(crtc)->head; 88 88 struct nvif_head_scanoutpos_v0 args; 89 89 int retry = 20;