]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3231c118b95c34d35d97508f1b2aa8a07758382f
tree819a93ad2bb6ad61a4e594cb5cece8c5bceb2d39
parent2a5204b976d479e5af6b4f2254ecc76a23e87d2a
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