drm/udl: Use GEM vmap/mmap function from SHMEM helpers
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 9 Jun 2020 09:08:20 +0000 (11:08 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 10 Jun 2020 08:17:21 +0000 (10:17 +0200)
commit99f55c798fcd838915c84fba868d9f7b996a5fbc
tree2c6a7c46c7e6fc77e00ad6eec5e7c8fc1c34a5aa
parentd18ee06b4889bf7da412069ef60baeaaca3ac6f4
drm/udl: Use GEM vmap/mmap function from SHMEM helpers

The udl driver contains an implementation of GEM vmap and mmap
operations that is identical to the common SHMEM helper; except
that udl's code uses cached pages by default.

Convert udl to regular SHMEM helper functions. There's no reason
to have udl behave differently from all other SHMEM drivers. The
udl driver uses the SHMEM helper to enable caching.

v3:
* rebased onto Daniel's shmem untangle series
v2:
* implement .gem_create_object with SHMEM helper

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200609090820.20256-3-tzimmermann@suse.de
drivers/gpu/drm/udl/Makefile
drivers/gpu/drm/udl/udl_drv.c
drivers/gpu/drm/udl/udl_drv.h
drivers/gpu/drm/udl/udl_gem.c [deleted file]