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 Patch-mainline: 20180618141739.48151-2-noralf@tronnes.org @ 18/07/18, 02:17 p.m. [stalek@codeaurora.org: 1. Delete extra change due to missing conflicts. 2. Change in file name due to conflict. 3. Drop change relate to syncobj and ret declaration because of compilation]. Change-Id: I358aaeae4291159bde77f966a17e06f982a05404 Signed-off-by:
Shubham Talekar <stalek@codeaurora.org>
Loading
Please register or sign in to comment