drm/mediatek: Implement mmap as GEM object function
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 24 Jun 2021 09:01:26 +0000 (11:01 +0200)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Mon, 9 Aug 2021 13:23:51 +0000 (21:23 +0800)
commit500007ebbae5e2da31f9220f913d9eb1505c71f8
tree819a93ad2bb6ad61a4e594cb5cece8c5bceb2d39
parentc7ef8f3572ae4cec1915070bae7bc01c6a2e8b19
drm/mediatek: 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 mediatek 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: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_drm_drv.c
drivers/gpu/drm/mediatek/mtk_drm_gem.c
drivers/gpu/drm/mediatek/mtk_drm_gem.h