]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drm: provide management functions for drm_file
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 18 Jun 2018 14:17:28 +0000 (16:17 +0200)
committerNoralf Trønnes <noralf@tronnes.org>
Mon, 25 Jun 2018 14:17:03 +0000 (16:17 +0200)
commit1572042a4ab25567e4785b53b947729dfa2dac99
tree8232ce3ff12286ec7bcb8cb9ae40d9bd3c1df9b3
parent46d8f405e16cdc47962edbe7771246c8d5b8c795
drm: provide management functions for drm_file

Rather than doing drm_file allocation/destruction right in the fops, lets
provide separate helpers. This decouples drm_file management from the
still-mandatory drm-fops. It prepares for use of drm_file without the
fops, both by possible separate fops implementations and APIs (not that I
am aware of any such plans), and more importantly from in-kernel use where
no real file is available.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20180618141739.48151-2-noralf@tronnes.org
drivers/gpu/drm/drm_file.c
drivers/gpu/drm/drm_internal.h