]> git.baikalelectronics.ru Git - kernel.git/commit
drm/etnaviv: Implement mmap as GEM object function
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 24 Jun 2021 08:58:00 +0000 (10:58 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 6 Jul 2021 16:32:23 +0000 (18:32 +0200)
commit390f2771745f50ef89aa17269b40b3dbfebfbd81
treedbae453c5280d79833306cec57b0afee44aff62b
parent076b818972365b6a662ace01af0ae2a05b13dfa5
drm/etnaviv: 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 etnaviv 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>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_drv.c
drivers/gpu/drm/etnaviv/etnaviv_drv.h
drivers/gpu/drm/etnaviv/etnaviv_gem.c
drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c