drm/vgem: Implement mmap as GEM object function
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 24 Jun 2021 09:52:38 +0000 (11:52 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 6 Jul 2021 08:12:35 +0000 (10:12 +0200)
commit375cca1cfeb5c55dc0e80caecf36e927855d2bb8
treeac20f662cacb5715013ad02b5b3168c50df15c0a
parentd9cc564bf3aee6fcc1c717a19f9a207114510671
drm/vgem: Implement mmap as GEM object function

Moving the driver-specific mmap code into a GEM object function allows
for using DRM helpers for various mmap callbacks.

The respective vgem functions are being removed. The file_operations
structure vgem_driver_fops is now being created by the helper macro
DEFINE_DRM_GEM_FOPS().

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210624095238.8804-1-tzimmermann@suse.de
drivers/gpu/drm/vgem/vgem_drv.c