From nobody Wed Feb 5 17:03:16 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B912F1DE4FC for ; Wed, 15 Jan 2025 21:06:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736975194; cv=none; b=p/m+K2lN6BEsvRX5QT3lxO0J9AB5Tviy1YjfM2pwNGfuv1F19NJrLSGcdPc5vq0i1PfwXMtVPTTl6MxseA5xsPQL26522b7KXNK2jyzIh1Ep0qSDJts3l6YT7Z5LZFJTH8y920SLs498ughgAE7a56I8RTTEZDaN4LJJiFsgSrM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736975194; c=relaxed/simple; bh=dDSrEJOy32MEMpzmIKaY91KJje1WwYUjtbVILeIG9mQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lY13IDsMredZkOT71LPtT655pDp1UE8LNBGuRZVLWXeMEqozl74k40vugSc8MgMGZg99ZiKGakqUwMzRNZrYZm/B4auWOxTTpc9nZbz9UPT3XhzKzrswxdHiVLwO39JbHYUFsN0X6HLeI+HUrfjiJELOArGteTmVOMJ2CTHc7nQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=q1IRDe/v; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="q1IRDe/v" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 030E7C4CED1; Wed, 15 Jan 2025 21:06:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736975194; bh=dDSrEJOy32MEMpzmIKaY91KJje1WwYUjtbVILeIG9mQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=q1IRDe/v+pmW+pZXDd1ChzHoQlFfqFzBX+jnhylRdmKxV5nAZrdh3kyHT8bf24JKn YJzv8BU5kJ3QpKsIjIecl2y7A9hActVpAiV8VJtIg68sInyC8t7x+YkCwFYWxj4hJv DMyS4THV4k52tbY8xIv/p3gX5KwcA9vBgIjU5aLqKilZeM5+keUh7UK8MwtDfUfsrP rHwIIgEKFt2F84nri5MUwzuWwh0V8BxuCDLHXf50zqACMiHA1KQEmI8TOUjMRAwXwx rXCHkOvieBAz9Y4O1FPLqW4kq6hdq0LzrFdzJAoLJOJl2AP6nPemeRkajm/5YKj9Na 9CWE/QuZdTSYw== From: Maxime Ripard Date: Wed, 15 Jan 2025 22:05:26 +0100 Subject: [PATCH 19/29] drm/atomic-helper: Change parameter name of drm_atomic_helper_cleanup_planes() Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250115-bridge-connector-v1-19-9a2fecd886a6@kernel.org> References: <20250115-bridge-connector-v1-0-9a2fecd886a6@kernel.org> In-Reply-To: <20250115-bridge-connector-v1-0-9a2fecd886a6@kernel.org> To: Maarten Lankhorst , Thomas Zimmermann , David Airlie , Simona Vetter , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Douglas Anderson Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Maxime Ripard X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2219; i=mripard@kernel.org; h=from:subject:message-id; bh=dDSrEJOy32MEMpzmIKaY91KJje1WwYUjtbVILeIG9mQ=; b=owGbwMvMwCmsHn9OcpHtvjLG02pJDOkdyrK3rs5eUNQwgUnq/qO7N/KOrwwNjjkS/atdd5WM+ uvbT57ndExlYRDmZJAVU2R5IhN2enn74ioH+5U/YOawMoEMYeDiFICJtD9hrOE+KfCqwv1fo61p k/t7p4/+fLq98xJLGS0y/eUmLen/yXDwOu+MbMaOnSoTKpe/dzu3mLFOc/GBQ0pHn/I1mcxmy7/ 84EP/W18+29NRfvubhYymOl2ocGksYPz9IvLliqtvGILszXcAAA== X-Developer-Key: i=mripard@kernel.org; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D drm_atomic_helper_cleanup_planes() is one of the final part of a commit, and will free up all plane resources used in the previous commit. It takes the drm_atomic_state being committed as a parameter. However, that parameter name is called (and documented) as old_state, which is pretty confusing. Let's rename that variable as state. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/drm_atomic_helper.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atom= ic_helper.c index 581fd0f14ba0aa2a9d0334cad49575de3fb5fb20..000ae2d4ded286458ee386e3433= 6d650907a8073 100644 --- a/drivers/gpu/drm/drm_atomic_helper.c +++ b/drivers/gpu/drm/drm_atomic_helper.c @@ -2977,28 +2977,28 @@ drm_atomic_helper_disable_planes_on_crtc(struct drm= _crtc_state *old_crtc_state, EXPORT_SYMBOL(drm_atomic_helper_disable_planes_on_crtc); =20 /** * drm_atomic_helper_cleanup_planes - cleanup plane resources after commit * @dev: DRM device - * @old_state: atomic state object with old state structures + * @state: atomic state object being committed * * This function cleans up plane state, specifically framebuffers, from th= e old - * configuration. Hence the old configuration must be perserved in @old_st= ate to + * configuration. Hence the old configuration must be perserved in @state = to * be able to call this function. * * This function may not be called on the new state when the atomic update * fails at any point after calling drm_atomic_helper_prepare_planes(). Use * drm_atomic_helper_unprepare_planes() in this case. */ void drm_atomic_helper_cleanup_planes(struct drm_device *dev, - struct drm_atomic_state *old_state) + struct drm_atomic_state *state) { struct drm_plane *plane; struct drm_plane_state *old_plane_state; int i; =20 - for_each_old_plane_in_state(old_state, plane, old_plane_state, i) { + for_each_old_plane_in_state(state, plane, old_plane_state, i) { const struct drm_plane_helper_funcs *funcs =3D plane->helper_private; =20 if (funcs->cleanup_fb) funcs->cleanup_fb(plane, old_plane_state); } --=20 2.47.1