summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/display/intel_global_state.c
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2022-11-09 16:42:08 +0200
committerJani Nikula <jani.nikula@intel.com>2022-11-17 16:12:56 +0200
commite2925e19c006d5c3f80c08cdbebed2866c712965 (patch)
tree3405bb59f04fec5825839bb8ba2c473ea99bf4ad /drivers/gpu/drm/i915/display/intel_global_state.c
parent62749912540b23d3806f5dc8de21b4c5cf5425aa (diff)
downloadlinux-e2925e19c006d5c3f80c08cdbebed2866c712965.tar.gz
linux-e2925e19c006d5c3f80c08cdbebed2866c712965.tar.bz2
linux-e2925e19c006d5c3f80c08cdbebed2866c712965.zip
drm/i915/display: move global_obj_list under display sub-struct
Move display global state member under drm_i915_private display sub-struct. Prefer adding anonymous sub-structs even for single members that aren't our own structs. Remove a nearby stale comment while at it. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20221109144209.3624739-3-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_global_state.c')
-rw-r--r--drivers/gpu/drm/i915/display/intel_global_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_global_state.c b/drivers/gpu/drm/i915/display/intel_global_state.c
index 7a19215ad844..02b593b1e2ea 100644
--- a/drivers/gpu/drm/i915/display/intel_global_state.c
+++ b/drivers/gpu/drm/i915/display/intel_global_state.c
@@ -45,14 +45,14 @@ void intel_atomic_global_obj_init(struct drm_i915_private *dev_priv,
obj->state = state;
obj->funcs = funcs;
- list_add_tail(&obj->head, &dev_priv->global_obj_list);
+ list_add_tail(&obj->head, &dev_priv->display.global.obj_list);
}
void intel_atomic_global_obj_cleanup(struct drm_i915_private *dev_priv)
{
struct intel_global_obj *obj, *next;
- list_for_each_entry_safe(obj, next, &dev_priv->global_obj_list, head) {
+ list_for_each_entry_safe(obj, next, &dev_priv->display.global.obj_list, head) {
list_del(&obj->head);
drm_WARN_ON(&dev_priv->drm, kref_read(&obj->state->ref) != 1);