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
Showing
- drivers/gpu/drm/xen/xen_drm_front.c 2 additions, 14 deletionsdrivers/gpu/drm/xen/xen_drm_front.c
- drivers/gpu/drm/xen/xen_drm_front_gem.c 42 additions, 66 deletionsdrivers/gpu/drm/xen/xen_drm_front_gem.c
- drivers/gpu/drm/xen/xen_drm_front_gem.h 0 additions, 7 deletionsdrivers/gpu/drm/xen/xen_drm_front_gem.h
Loading
Please register or sign in to comment