diff options
author | Michał Winiarski <michal.winiarski@intel.com> | 2021-12-14 21:33:39 +0200 |
---|---|---|
committer | Matt Roper <matthew.d.roper@intel.com> | 2021-12-17 21:51:59 -0800 |
commit | 2cbc876daa715d50543e1d4d73f4e692860a51e5 (patch) | |
tree | 51b73fd7d07c7019bb0e4c8a6cccf715b7ade720 /drivers/gpu/drm/i915/i915_debugfs_params.c | |
parent | c68c74f5b91ba56dab3ca9a219462e08c9b3cc9a (diff) |
drm/i915: Use to_gt() helper
Use to_gt() helper consistently throughout the codebase.
Pure mechanical s/i915->gt/to_gt(i915). No functional changes.
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211214193346.21231-10-andi.shyti@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_debugfs_params.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs_params.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs_params.c b/drivers/gpu/drm/i915/i915_debugfs_params.c index 20424275d41e..783c8676eee2 100644 --- a/drivers/gpu/drm/i915/i915_debugfs_params.c +++ b/drivers/gpu/drm/i915/i915_debugfs_params.c @@ -40,8 +40,8 @@ static int notify_guc(struct drm_i915_private *i915) { int ret = 0; - if (intel_uc_uses_guc_submission(&i915->gt.uc)) - ret = intel_guc_global_policies_update(&i915->gt.uc.guc); + if (intel_uc_uses_guc_submission(&to_gt(i915)->uc)) + ret = intel_guc_global_policies_update(&to_gt(i915)->uc.guc); return ret; } |