diff options
author | Jani Nikula <jani.nikula@intel.com> | 2022-11-09 16:42:08 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2022-11-17 16:12:56 +0200 |
commit | e2925e19c006d5c3f80c08cdbebed2866c712965 (patch) | |
tree | 3405bb59f04fec5825839bb8ba2c473ea99bf4ad /drivers/gpu/drm/i915/display/intel_global_state.c | |
parent | 62749912540b23d3806f5dc8de21b4c5cf5425aa (diff) | |
download | linux-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.c | 4 |
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); |