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)
commit81fd23e2b3ccf71c807e671444e8accaba98ca53
treedbae453c5280d79833306cec57b0afee44aff62b
parent432f51e7deedadceaf99a953a6f0a7b30c8155f9
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