drm/i915: Use i915_vm_to_ppgtt instead of manual container_of
authorJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Thu, 7 Apr 2016 08:08:03 +0000 (11:08 +0300)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Thu, 7 Apr 2016 11:49:42 +0000 (14:49 +0300)
commite5716f55753cdce9f6348e5778847e772af6c917
treee3a67e6549b78f09aced77a465f2472f2326eb39
parent281c114f8e80d3a86f18ccf7cb93460bad48fcbe
drm/i915: Use i915_vm_to_ppgtt instead of manual container_of

Looks much better without container_of everywhere.

v2:
- In i915_gem_restore_gtt_mappings too (Chris)

v3:
- Do not cause WARN by calling on non PPGTT object (Chris)

Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem_gtt.c