summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/selftests/i915_gem.c
diff options
context:
space:
mode:
authorAndi Shyti <andi.shyti@linux.intel.com>2021-12-14 21:33:37 +0200
committerMatt Roper <matthew.d.roper@intel.com>2021-12-17 21:51:00 -0800
commit8c2699fad60e3f3e55481b49a38d46f49ebba77d (patch)
tree506ef1ec30881186215614aa0431358a419318e0 /drivers/gpu/drm/i915/selftests/i915_gem.c
parent93b76b13cfc13bf02d91aa544efbb067e3382141 (diff)
downloadlinux-stable-8c2699fad60e3f3e55481b49a38d46f49ebba77d.tar.gz
linux-stable-8c2699fad60e3f3e55481b49a38d46f49ebba77d.tar.bz2
linux-stable-8c2699fad60e3f3e55481b49a38d46f49ebba77d.zip
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
Diffstat (limited to 'drivers/gpu/drm/i915/selftests/i915_gem.c')
-rw-r--r--drivers/gpu/drm/i915/selftests/i915_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/selftests/i915_gem.c b/drivers/gpu/drm/i915/selftests/i915_gem.c
index 152d9ab135b1..b5576888cd78 100644
--- a/drivers/gpu/drm/i915/selftests/i915_gem.c
+++ b/drivers/gpu/drm/i915/selftests/i915_gem.c
@@ -248,7 +248,7 @@ int i915_gem_live_selftests(struct drm_i915_private *i915)
SUBTEST(igt_gem_ww_ctx),
};
- if (intel_gt_is_wedged(&i915->gt))
+ if (intel_gt_is_wedged(to_gt(i915)))
return 0;
return i915_live_subtests(tests, i915);