]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/kms/nv50-: Use state helper instead of crtc pointer
authorMaxime Ripard <maxime@cerno.tech>
Mon, 2 Nov 2020 13:38:32 +0000 (14:38 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 3 Nov 2020 11:20:09 +0000 (12:20 +0100)
commitfcdf7b61526e9bd9fd571252f5037ab5d7679038
treed23e62cf53474800f7bb1743aac10b1879985817
parentc02e3709a8685df83473902d9dd3d3508a900201
drm/nouveau/kms/nv50-: Use state helper instead of crtc pointer

dispnv50 references the crtc->state pointer in order to get the current
CRTC state in its atomic_check hook, which would be the old CRTC state in
the global atomic state.

Use the drm_atomic_get_old_crtc_state helper to get that state to make it
more obvious.

Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201102133834.1176740-1-maxime@cerno.tech
drivers/gpu/drm/nouveau/dispnv50/head.c