summaryrefslogtreecommitdiffstats
path: root/drivers/staging/android/sync_file.c
diff options
context:
space:
mode:
authorGustavo Padovan2016-04-28 15:46:55 +0200
committerGreg Kroah-Hartman2016-04-30 02:37:10 +0200
commitc240a714a6ad68458c3caf61ab6216184e52b631 (patch)
treee6834fc9289e2082fd12ae2b6f0f1ffa0685ffbc /drivers/staging/android/sync_file.c
parentstaging/android: prepare sync_file for de-staging (diff)
downloadkernel-qcow2-linux-c240a714a6ad68458c3caf61ab6216184e52b631.tar.gz
kernel-qcow2-linux-c240a714a6ad68458c3caf61ab6216184e52b631.tar.xz
kernel-qcow2-linux-c240a714a6ad68458c3caf61ab6216184e52b631.zip
staging/android: improve documentation for sync_file
num_fences was missing a colon mark and sync_file_create() now have better description. Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/android/sync_file.c')
-rw-r--r--drivers/staging/android/sync_file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/android/sync_file.c b/drivers/staging/android/sync_file.c
index 2c724ec0004c..d9da3a4ff30c 100644
--- a/drivers/staging/android/sync_file.c
+++ b/drivers/staging/android/sync_file.c
@@ -65,11 +65,12 @@ static void fence_check_cb_func(struct fence *f, struct fence_cb *cb)
}
/**
- * sync_fence_create() - creates a sync fence
+ * sync_file_create() - creates a sync file
* @fence: fence to add to the sync_fence
*
* Creates a sync_file containg @fence. Once this is called, the sync_file
- * takes ownership of @fence.
+ * takes ownership of @fence. The sync_file can be released with
+ * fput(sync_file->file). Returns the sync_file or NULL in case of error.
*/
struct sync_file *sync_file_create(struct fence *fence)
{