From nobody Wed Feb 5 19:55:27 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 E2124207E1D for ; Tue, 4 Feb 2025 15:00:13 +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=1738681214; cv=none; b=p7nyo7i7VJwTevUia6NnkF6M59xOPctd5Xz2V1LOKBiUkl9EveXOWCI4OuObiq++ZTEjoKQwGE91xUP3uDEx1ySo3Auupze3UNr/iQwQ8/OuVdk2q+7KH1BlMDl2ZdLi9egy3RgW/ZoIz/E5peulxL8/CPMgsuKOhxQLAZAyBdg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738681214; c=relaxed/simple; bh=lKHEStTN+TqLy8+wMPj1wvgKR413ZvIK95KvL1pe7fU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Vh9ze9FHVYz3Q6NF+94hvyTNhu4PjnYP4aAJSlPyKj8S5TeQhpe/nI5bZDspumhAEI/h7DJdC36DpgFtN2DozHVeeDLQfdNqRo67KJ8UA7iyzNIzVVsI2R22aCdWg3UdA3CxJFXJ48thqR4Sqr2d7K2YQNGV3N8dTopzk2ydITc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QpxfiVff; 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="QpxfiVff" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A9B5C4CEE4; Tue, 4 Feb 2025 15:00:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1738681213; bh=lKHEStTN+TqLy8+wMPj1wvgKR413ZvIK95KvL1pe7fU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=QpxfiVffb+KOD+k91m4xFFZlV+9SKCWKA6eauj5L4qTkzdy7vABxu5foVl743+d2e BvzkaUmu4OqwseL+zgizK0avAT/59EpHPv72dv+iO+s/3FWmc2hqM+BLvinb0TQDoj Cs++7FP/Rtz9A8tGjMgTQPTHkPhLAiCYFXGgtoP/2Dpkq6T5K7W6PFwnS2U+Y0KLE7 lh3suOkoborzYgTiQ0BkUOg4/mnnQZqYXfty20wu/IKtPSc1eQodtY99crmxWyls1W YNAKv2QzS4jSR51MV5jTxcEDKbH9uY1eDY0J8vvxh2PlTCo+mr1iUu83kjsDASy4zp EyYwRJ00jEkSw== From: Maxime Ripard Date: Tue, 04 Feb 2025 15:57:52 +0100 Subject: [PATCH v2 24/35] 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: <20250204-bridge-connector-v2-24-35dd6c834e08@kernel.org> References: <20250204-bridge-connector-v2-0-35dd6c834e08@kernel.org> In-Reply-To: <20250204-bridge-connector-v2-0-35dd6c834e08@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=lKHEStTN+TqLy8+wMPj1wvgKR413ZvIK95KvL1pe7fU=; b=owGbwMvMwCmsHn9OcpHtvjLG02pJDOmLtD5/6ehZc64nisnk2ObLF+K2fpktcUBE+p+l+xRGU 5eYl3IHO6ayMAhzMsiKKbI8kQk7vbx9cZWD/cofMHNYmUCGMHBxCsBE1JQYq9mEGTpVVqqIZDZ1 /GEwe7xg8wvlR0tXtEpGVE1My0121Slgntda7LYtJvd0//7MgqBQxvrAmJ1t929z639d3br1jIZ 3YGa3J6OCxK6yjF0T6nhfPuKrOO2cm2pRX6d2sTXhMWd+KgA= 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 54df4f792dca8006a855ccc5fd4e279d111480d0..3e6c5992fed09f5962e74844d36= 0193c53915c88 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.48.0