drm/i915/selftests: Use to_gt() helper for GGTT accesses
authorMichał Winiarski <michal.winiarski@intel.com>
Sun, 19 Dec 2021 21:24:59 +0000 (23:24 +0200)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 5 Jan 2022 18:45:58 +0000 (10:45 -0800)
commit17190a3492bb20ce1cc695fdadc7e4f7ad5b44ff
tree1d74b0a4dfad695ae44ff35cd8f43a3fd608d1c3
parent59dc4632e35becca1186dbab83ac7cf8603afaa9
drm/i915/selftests: Use to_gt() helper for GGTT accesses

GGTT is currently available both through i915->ggtt and gt->ggtt, and we
eventually want to get rid of the i915->ggtt one.
Use to_gt() for all i915->ggtt accesses to help with the future
refactoring.

Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: Sujaritha Sundaresan <sujaritha.sundaresan@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/20211219212500.61432-6-andi.shyti@linux.intel.com
drivers/gpu/drm/i915/selftests/i915_gem.c
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
drivers/gpu/drm/i915/selftests/i915_request.c
drivers/gpu/drm/i915/selftests/i915_vma.c
drivers/gpu/drm/i915/selftests/mock_gem_device.c