drm/xen: Implement mmap as GEM object function
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 8 Nov 2021 10:28:45 +0000 (11:28 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 11 Nov 2021 11:06:57 +0000 (12:06 +0100)
commit3153c6486008061297bfb0ec5cfd3aa4f8df66d9
tree47db4dfc1a03fbd1768c0e51723e14f501bbb4fa
parent790f27e0f7c16b162fef29f584d8a85bf9323da5
drm/xen: 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 xen functions are being removed. The file_operations
structure fops is now being created by the helper macro
DEFINE_DRM_GEM_FOPS().

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211108102846.309-3-tzimmermann@suse.de
drivers/gpu/drm/xen/xen_drm_front.c
drivers/gpu/drm/xen/xen_drm_front_gem.c
drivers/gpu/drm/xen/xen_drm_front_gem.h