diff options
author | Michał Winiarski <michal.winiarski@intel.com> | 2021-12-14 22:33:34 +0300 |
---|---|---|
committer | Matt Roper <matthew.d.roper@intel.com> | 2021-12-18 08:50:06 +0300 |
commit | c14adcbd1a9648dc9d16dfd12c1e9bc0c14ef6aa (patch) | |
tree | 9874cf71334512bdd8c9cad015775d21b1163db4 /drivers/gpu/drm/i915/gt/selftest_workarounds.c | |
parent | 62e94f92e3977dbe67a6974ba7e5aa60c9a5e687 (diff) | |
download | linux-c14adcbd1a9648dc9d16dfd12c1e9bc0c14ef6aa.tar.xz |
drm/i915/gt: 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-5-andi.shyti@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/gt/selftest_workarounds.c')
-rw-r--r-- | drivers/gpu/drm/i915/gt/selftest_workarounds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/gt/selftest_workarounds.c b/drivers/gpu/drm/i915/gt/selftest_workarounds.c index 962e91ba3be4..0287c2573c51 100644 --- a/drivers/gpu/drm/i915/gt/selftest_workarounds.c +++ b/drivers/gpu/drm/i915/gt/selftest_workarounds.c @@ -1387,8 +1387,8 @@ int intel_workarounds_live_selftests(struct drm_i915_private *i915) SUBTEST(live_engine_reset_workarounds), }; - if (intel_gt_is_wedged(&i915->gt)) + if (intel_gt_is_wedged(to_gt(i915))) return 0; - return intel_gt_live_subtests(tests, &i915->gt); + return intel_gt_live_subtests(tests, to_gt(i915)); } |