From: Maxime Ripard Date: Tue, 30 Sep 2025 10:59:20 +0000 (+0200) Subject: drm/atomic: Convert drm_atomic_get_plane_state() to use new plane state X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=618c234740521e74ef81cfbe272c768597267374;p=thirdparty%2Fkernel%2Flinux.git drm/atomic: Convert drm_atomic_get_plane_state() to use new plane state The drm_atomic_get_plane_state() function calls the deprecated drm_atomic_get_existing_plane_state() helper to get find if a plane state had already been allocated and was part of the given drm_atomic_state. At the point in time where drm_atomic_get_plane_state() can be called (ie, during atomic_check), the existing state is the new state and drm_atomic_get_existing_plane_state() can thus be replaced by drm_atomic_get_new_plane_state(). Reviewed-by: Ville Syrjälä Link: https://lore.kernel.org/r/20250930-drm-no-more-existing-state-v5-5-eeb9e1287907@kernel.org Signed-off-by: Maxime Ripard --- diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c index eeae4553894c1..878ded3220eea 100644 --- a/drivers/gpu/drm/drm_atomic.c +++ b/drivers/gpu/drm/drm_atomic.c @@ -534,7 +534,7 @@ drm_atomic_get_plane_state(struct drm_atomic_state *state, WARN_ON(plane->old_fb); WARN_ON(plane->crtc); - plane_state = drm_atomic_get_existing_plane_state(state, plane); + plane_state = drm_atomic_get_new_plane_state(state, plane); if (plane_state) return plane_state;