]> git.baikalelectronics.ru Git - kernel.git/commit
drm/rockchip: Implement mmap as GEM object function
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 24 Jun 2021 09:55:02 +0000 (11:55 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 21 Oct 2021 10:46:23 +0000 (12:46 +0200)
commit263eca5f8cb09876b1235ae8195b3d73b4e67f85
tree109c1994f2edba707f8efb54b61e8f656ae234c3
parent7367d788043014c1e31a45995c634cd239af9e71
drm/rockchip: 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 rockchip 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>
[On rk3288 (pinky), rk3399 (gru-kevin, puma) and rk3328 (rock64)]
Tested-by: Heiko Stuebner <heiko@sntech.de>
[On RK3188/RK3066 (without iommu)]
Tested-by: Alex Bee <knaerzche@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20210624095502.8945-1-tzimmermann@suse.de
drivers/gpu/drm/rockchip/rockchip_drm_drv.c
drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c
drivers/gpu/drm/rockchip/rockchip_drm_gem.c
drivers/gpu/drm/rockchip/rockchip_drm_gem.h