drm/i915/selftests: 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: Andi Shyti <andi.shyti@linux.intel.com>
Cc: Michał Winiarski <michal.winiarski@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-8-andi.shyti@linux.intel.com
This commit is contained in:
Andi Shyti
2021-12-14 21:33:37 +02:00
committed by Matt Roper
parent 93b76b13cf
commit 8c2699fad6
14 changed files with 40 additions and 40 deletions

View File

@@ -14,7 +14,7 @@
int igt_flush_test(struct drm_i915_private *i915)
{
struct intel_gt *gt = &i915->gt;
struct intel_gt *gt = to_gt(i915);
int ret = intel_gt_is_wedged(gt) ? -EIO : 0;
cond_resched();