mirror of https://gitee.com/openkylin/linux.git
drm/pl111: Introduce GEM object functions
GEM object functions deprecate several similar callback interfaces in struct drm_driver. This patch replaces the per-driver callbacks with per-instance callbacks in pl111. The only exception is gem_prime_mmap, which is non-trivial to convert. v2: * use drm_gem_cma_create_object_default_funcs() (Eric) Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Eric Anholt <eric@anholt.net> Acked-by: Christian König <christian.koenig@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200923102159.24084-13-tzimmermann@suse.de
This commit is contained in:
parent
c5ca5e029f
commit
4889d684fd
|
@ -224,15 +224,12 @@ static struct drm_driver pl111_drm_driver = {
|
|||
.major = 1,
|
||||
.minor = 0,
|
||||
.patchlevel = 0,
|
||||
.gem_create_object = drm_gem_cma_create_object_default_funcs,
|
||||
.dumb_create = drm_gem_cma_dumb_create,
|
||||
.gem_free_object_unlocked = drm_gem_cma_free_object,
|
||||
.gem_vm_ops = &drm_gem_cma_vm_ops,
|
||||
.prime_handle_to_fd = drm_gem_prime_handle_to_fd,
|
||||
.prime_fd_to_handle = drm_gem_prime_fd_to_handle,
|
||||
.gem_prime_import_sg_table = pl111_gem_import_sg_table,
|
||||
.gem_prime_get_sg_table = drm_gem_cma_prime_get_sg_table,
|
||||
.gem_prime_mmap = drm_gem_cma_prime_mmap,
|
||||
.gem_prime_vmap = drm_gem_cma_prime_vmap,
|
||||
|
||||
#if defined(CONFIG_DEBUG_FS)
|
||||
.debugfs_init = pl111_debugfs_init,
|
||||
|
|
Loading…
Reference in New Issue