diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-12-09 13:53:06 -0500 |
---|---|---|
committer | Sumit Semwal <sumit.semwal@linaro.org> | 2016-12-13 06:39:39 -0500 |
commit | 24a367348a017555f982a9ee137070a7a821fa97 (patch) | |
tree | e22dd649dda4cd59af3f8d193d858867d239ec93 /drivers/dma-buf | |
parent | c24889167583c2e7fbd1a9e12ef508c8405f6fd4 (diff) |
dma-buf: Update kerneldoc for sync_file_create
This was missed when adding a dma_fence_get call. While at it also
remove the kerneldoc for the static inline helper - no point
documenting internals down to every detail.
Fixes: 30cd85dd6edc ("dma-buf/sync_file: hold reference to fence when creating sync_file")
Cc: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Cc: Sean Paul <seanpaul@chromium.org>
Cc: linux-doc@vger.kernel.org
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20161209185309.1682-3-daniel.vetter@ffwll.ch
Diffstat (limited to 'drivers/dma-buf')
-rw-r--r-- | drivers/dma-buf/sync_file.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/dma-buf/sync_file.c b/drivers/dma-buf/sync_file.c index 6d802f2d2881..d5179d7e8575 100644 --- a/drivers/dma-buf/sync_file.c +++ b/drivers/dma-buf/sync_file.c | |||
@@ -67,9 +67,10 @@ static void fence_check_cb_func(struct dma_fence *f, struct dma_fence_cb *cb) | |||
67 | * sync_file_create() - creates a sync file | 67 | * sync_file_create() - creates a sync file |
68 | * @fence: fence to add to the sync_fence | 68 | * @fence: fence to add to the sync_fence |
69 | * | 69 | * |
70 | * Creates a sync_file containg @fence. Once this is called, the sync_file | 70 | * Creates a sync_file containg @fence. This function acquires and additional |
71 | * takes ownership of @fence. The sync_file can be released with | 71 | * reference of @fence for the newly-created &sync_file, if it succeeds. The |
72 | * fput(sync_file->file). Returns the sync_file or NULL in case of error. | 72 | * sync_file can be released with fput(sync_file->file). Returns the |
73 | * sync_file or NULL in case of error. | ||
73 | */ | 74 | */ |
74 | struct sync_file *sync_file_create(struct dma_fence *fence) | 75 | struct sync_file *sync_file_create(struct dma_fence *fence) |
75 | { | 76 | { |
@@ -90,13 +91,6 @@ struct sync_file *sync_file_create(struct dma_fence *fence) | |||
90 | } | 91 | } |
91 | EXPORT_SYMBOL(sync_file_create); | 92 | EXPORT_SYMBOL(sync_file_create); |
92 | 93 | ||
93 | /** | ||
94 | * sync_file_fdget() - get a sync_file from an fd | ||
95 | * @fd: fd referencing a fence | ||
96 | * | ||
97 | * Ensures @fd references a valid sync_file, increments the refcount of the | ||
98 | * backing file. Returns the sync_file or NULL in case of error. | ||
99 | */ | ||
100 | static struct sync_file *sync_file_fdget(int fd) | 94 | static struct sync_file *sync_file_fdget(int fd) |
101 | { | 95 | { |
102 | struct file *file = fget(fd); | 96 | struct file *file = fget(fd); |