]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit40ce870788f79742defd57284d1fc8ac7ca30abe
treeac20f662cacb5715013ad02b5b3168c50df15c0a
parenta50c8e4e7e4ac9dcba4ddf1e3df953339a44edbf
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