diff options
author | Michał Winiarski <michal.winiarski@intel.com> | 2021-12-14 22:33:36 +0300 |
---|---|---|
committer | Matt Roper <matthew.d.roper@intel.com> | 2021-12-18 08:50:41 +0300 |
commit | 93b76b13cfc13bf02d91aa544efbb067e3382141 (patch) | |
tree | 159c26342a3be8986fae0add0e4ae7e3b1386a25 /drivers/gpu/drm/i915/gvt/gvt.c | |
parent | 1a9c4db4caf0a504e35f0cfd97e54e07ebc85044 (diff) | |
download | linux-93b76b13cfc13bf02d91aa544efbb067e3382141.tar.xz |
drm/i915/gvt: 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-7-andi.shyti@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/gvt.c')
-rw-r--r-- | drivers/gpu/drm/i915/gvt/gvt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gvt/gvt.c b/drivers/gpu/drm/i915/gvt/gvt.c index cbac409f6c8a..f0b69e4dcb52 100644 --- a/drivers/gpu/drm/i915/gvt/gvt.c +++ b/drivers/gpu/drm/i915/gvt/gvt.c @@ -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); |