OSDN Git Service

drm/tegra: gem: Make __tegra_gem_mmap() available more widely
authorThierry Reding <treding@nvidia.com>
Wed, 7 Feb 2018 17:45:55 +0000 (18:45 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 8 Mar 2018 13:38:30 +0000 (14:38 +0100)
commit04c0746663bd3ae3cce5e02d5b32c8ade2a833b8
tree178b216a4bd526ff3080d1a8083ed6857ffeb760
parentb6d7974d10b30bf3baed7e50d8e574f5184cfdd1
drm/tegra: gem: Make __tegra_gem_mmap() available more widely

This function allows mapping a GEM object into a virtual memory address
space, which makes it useful outside of the GEM code.

While at it, rename the function so it doesn't clash with the function
that implements the DRM_TEGRA_GEM_MMAP IOCTL.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/gem.c
drivers/gpu/drm/tegra/gem.h