summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorMaxime Ripard <mripard@kernel.org>2025-10-08 15:11:42 +0200
committerMaxime Ripard <mripard@kernel.org>2025-10-13 11:00:07 +0200
commit1226cd7c7686aee9363ec39a8a80292e27216c6b (patch)
treea0bbbcbae132e93e4a35e324f8cc728b71101bb4 /include/drm
parent9b966ae42235a88eaea714be09ff3d698535bdfe (diff)
drm/atomic: Change state pointers to a more meaningful name
The state pointer found in the struct drm_atomic_state internals for most object is a bit ambiguous, and confusing when those internals also have old state and new state. After the recent cleanups, the state pointer only use is to point to the state we need to free when destroying the atomic state. We can thus rename it something less ambiguous, and hopefully more meaningful. Acked-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://lore.kernel.org/r/20251008-drm-rename-state-v2-1-49b490b2676a@kernel.org Signed-off-by: Maxime Ripard <mripard@kernel.org>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_atomic.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h
index c8ab2163bf65..155e82f87e4d 100644
--- a/include/drm/drm_atomic.h
+++ b/include/drm/drm_atomic.h
@@ -161,7 +161,7 @@ struct __drm_planes_state {
struct drm_plane *ptr;
/**
- * @state:
+ * @state_to_destroy:
*
* Used to track the @drm_plane_state we will need to free when
* tearing down the associated &drm_atomic_state in
@@ -173,7 +173,7 @@ struct __drm_planes_state {
* the same state than @new_state. After a commit, it points to
* the same state than @old_state.
*/
- struct drm_plane_state *state;
+ struct drm_plane_state *state_to_destroy;
struct drm_plane_state *old_state, *new_state;
};
@@ -182,7 +182,7 @@ struct __drm_crtcs_state {
struct drm_crtc *ptr;
/**
- * @state:
+ * @state_to_destroy:
*
* Used to track the @drm_crtc_state we will need to free when
* tearing down the associated &drm_atomic_state in
@@ -194,7 +194,7 @@ struct __drm_crtcs_state {
* the same state than @new_state. After a commit, it points to
* the same state than @old_state.
*/
- struct drm_crtc_state *state;
+ struct drm_crtc_state *state_to_destroy;
struct drm_crtc_state *old_state, *new_state;
@@ -216,7 +216,7 @@ struct __drm_connnectors_state {
struct drm_connector *ptr;
/**
- * @state:
+ * @state_to_destroy:
*
* Used to track the @drm_connector_state we will need to free
* when tearing down the associated &drm_atomic_state in
@@ -228,7 +228,7 @@ struct __drm_connnectors_state {
* the same state than @new_state. After a commit, it points to
* the same state than @old_state.
*/
- struct drm_connector_state *state;
+ struct drm_connector_state *state_to_destroy;
struct drm_connector_state *old_state, *new_state;
@@ -393,7 +393,7 @@ struct __drm_private_objs_state {
struct drm_private_obj *ptr;
/**
- * @state:
+ * @state_to_destroy:
*
* Used to track the @drm_private_state we will need to free
* when tearing down the associated &drm_atomic_state in
@@ -405,7 +405,7 @@ struct __drm_private_objs_state {
* the same state than @new_state. After a commit, it points to
* the same state than @old_state.
*/
- struct drm_private_state *state;
+ struct drm_private_state *state_to_destroy;
struct drm_private_state *old_state, *new_state;
};