summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/udl/udl_drv.c
diff options
context:
space:
mode:
authorHaixia Shi <hshi@chromium.org>2014-11-13 05:33:53 +0300
committerDave Airlie <airlied@redhat.com>2014-11-20 04:41:37 +0300
commitebfdd6d5e837bd1c170b9bdd749fee2a4183a7f5 (patch)
tree092ef9dffb7ce07691a57b4f158aa43a66e15d07 /drivers/gpu/drm/udl/udl_drv.c
parent09a58da052111263e31f0050ad775b62166fafba (diff)
downloadlinux-ebfdd6d5e837bd1c170b9bdd749fee2a4183a7f5.tar.xz
drm/udl: add support to export a handle to a FD on UDL.
Only importing an FD to a handle is currently supported on UDL, but the exporting functionality is equally useful. Signed-off-by: Haixia Shi <hshi@chromium.org> Reviewed-by: Stéphane Marchesin <marcheu@chromium.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/udl/udl_drv.c')
-rw-r--r--drivers/gpu/drm/udl/udl_drv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/udl/udl_drv.c b/drivers/gpu/drm/udl/udl_drv.c
index 8607e9e513db..d5728ec85254 100644
--- a/drivers/gpu/drm/udl/udl_drv.c
+++ b/drivers/gpu/drm/udl/udl_drv.c
@@ -51,7 +51,9 @@ static struct drm_driver driver = {
.dumb_destroy = drm_gem_dumb_destroy,
.fops = &udl_driver_fops,
+ .prime_handle_to_fd = drm_gem_prime_handle_to_fd,
.prime_fd_to_handle = drm_gem_prime_fd_to_handle,
+ .gem_prime_export = udl_gem_prime_export,
.gem_prime_import = udl_gem_prime_import,
.name = DRIVER_NAME,