mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 23:03:57 -04:00
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
This commit is contained in:
committed by
Matt Roper
parent
c68c74f5b9
commit
2cbc876daa
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user