]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/atomic: Convert drm_atomic_get_crtc_state() to use new connector state
authorMaxime Ripard <mripard@kernel.org>
Tue, 30 Sep 2025 10:59:25 +0000 (12:59 +0200)
committerMaxime Ripard <mripard@kernel.org>
Mon, 6 Oct 2025 11:59:08 +0000 (13:59 +0200)
commitb8563c94189a677e129addbc80e817d113e5f113
treed6074a07a4da847ec88f3a2571e71684e2f9f78d
parent7ca4e7fa4d57ce6eac4842e925ea1f98ea54a365
drm/atomic: Convert drm_atomic_get_crtc_state() to use new connector state

The drm_atomic_get_crtc_state() function calls the deprecated
drm_atomic_get_existing_crtc_state() helper to get find if a crtc state
had already been allocated and was part of the given drm_atomic_state.

At the point in time where drm_atomic_get_crtc_state() can be
called (ie, during atomic_check), the existing state is the new state
and drm_atomic_get_existing_crtc_state() can thus be replaced by
drm_atomic_get_new_crtc_state().

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://lore.kernel.org/r/20250930-drm-no-more-existing-state-v5-10-eeb9e1287907@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
drivers/gpu/drm/drm_atomic.c