drm/tegra: gem: Implement mmap() for PRIME buffers
authorThierry Reding <treding@nvidia.com>
Tue, 15 Aug 2017 13:42:40 +0000 (15:42 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 17 Aug 2017 15:57:18 +0000 (17:57 +0200)
commita8bc8c6510d64b759644647a03f8aec55056bded
treed12efe90dde9f0938ac7c3a79a5c93a67c73ebef
parent6c68b71776e760c67f10fbdbe56908793a7b1763
drm/tegra: gem: Implement mmap() for PRIME buffers

The mapping of PRIME buffers can reuse much of the GEM mapping code, so
extract the common bits into a new tegra_gem_mmap() helper.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/gem.c