diff options
author | Andi Shyti <andi.shyti@linux.intel.com> | 2021-12-14 21:33:38 +0200 |
---|---|---|
committer | Matt Roper <matthew.d.roper@intel.com> | 2021-12-17 21:51:10 -0800 |
commit | c68c74f5b91ba56dab3ca9a219462e08c9b3cc9a (patch) | |
tree | 509eb87878f2995ffb024f204e1e253b622164fe /drivers/gpu/drm/i915/pxp | |
parent | 8c2699fad60e3f3e55481b49a38d46f49ebba77d (diff) | |
download | linux-c68c74f5b91ba56dab3ca9a219462e08c9b3cc9a.tar.bz2 |
drm/i915/pxp: 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>
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-9-andi.shyti@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/pxp')
-rw-r--r-- | drivers/gpu/drm/i915/pxp/intel_pxp_tee.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/pxp/intel_pxp_tee.c b/drivers/gpu/drm/i915/pxp/intel_pxp_tee.c index 49508f31dcb7..7408d2f93d01 100644 --- a/drivers/gpu/drm/i915/pxp/intel_pxp_tee.c +++ b/drivers/gpu/drm/i915/pxp/intel_pxp_tee.c @@ -14,7 +14,9 @@ static inline struct intel_pxp *i915_dev_to_pxp(struct device *i915_kdev) { - return &kdev_to_i915(i915_kdev)->gt.pxp; + struct drm_i915_private *i915 = kdev_to_i915(i915_kdev); + + return &to_gt(i915)->pxp; } static int intel_pxp_tee_io_message(struct intel_pxp *pxp, |