drm/i915/gvt: Use to_gt() helper
PATCH v7 6/12 drm/i915/gvt: Use to_gt() helper
From: Michał Winiarski <[email protected]>
Use to_gt() helper consistently throughout the codebase. Pure mechanical s/i915->gt/to_gt(i915). No functional changes.
Signed-off-by Michał Winiarski <[email protected]>
Signed-off-by Andi Shyti <[email protected]>
Reviewed-by Matt Roper <[email protected]>
--- drivers/gpu/drm/i915/gvt/gvt.c | 2 +- drivers/gpu/drm/i915/gvt/scheduler.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/gvt/gvt.c +1 -1
@@ -205,7 +205,7 @@ int intel_gvt_init_device(struct drm_i915_private *i915)spin_lock_init (&gvt->scheduler.mmio_context_lock);mutex_init (&gvt->lock);mutex_init (&gvt->sched_lock); - gvt->gt = &i915->gt; + gvt->gt =to_gt (i915); i915->gvt = gvt;init_device_info (gvt);
drivers/gpu/drm/i915/gvt/scheduler.c +1 -1
@@ -1386,7 +1386,7 @@ int intel_vgpu_setup_submission(struct intel_vgpu *vgpu)enum intel_engine_id i;int ret; - ppgtt =i915_ppgtt_create (&i915->gt,I915_BO_ALLOC_PM_EARLY ); + ppgtt =i915_ppgtt_create (to_gt (i915),I915_BO_ALLOC_PM_EARLY );if (IS_ERR (ppgtt))return PTR_ERR (ppgtt);
Signature · 1 line
2.34.1