Skip to contentSkip to conversation

drm/i915/pxp: Use to_gt() helper

PATCH Superseded Andi Shyti 1 participant 1 message Dec 12, 2021

Subsystems (2)

v7 of 10 Superseded Latest is v10 →

lore
Share & tools
lore

Andi Shyti

author
#0 lore raw

PATCH v7 8/12 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.

---
 drivers/gpu/drm/i915/pxp/intel_pxp_tee.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/pxp/intel_pxp_tee.c +3 -1
index 5d169624ad60..195b2323ec00 100644
@@ -16,7 +16,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,
Signature · 1 line
2.34.1