drm/i915/perf: replace .reg accesses with i915_mmio_reg_offset
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 13 Nov 2017 23:34:52 +0000 (23:34 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 20 Nov 2017 15:46:02 +0000 (15:46 +0000)
commit7c52a2219da1e551e19af6a4c50619952c6d7bde
tree3840334b2ecff6b0c04efa0e10fdd50b57d1e238
parent1f5f9edb44ca9fd7255cdc60a1880241d2d17e48
drm/i915/perf: replace .reg accesses with i915_mmio_reg_offset

This replaces accesses to the reg field of the i915_reg_t structure
with the i915_mmio_reg_offset() inline function.

Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Ewelina Musial <ewelina.musial@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171113233455.12085-2-lionel.g.landwerlin@intel.com
drivers/gpu/drm/i915/i915_perf.c