diff options
author | Gustavo Padovan <gustavo.padovan@collabora.com> | 2017-02-15 12:57:25 -0500 |
---|---|---|
committer | Sumit Semwal <sumit.semwal@linaro.org> | 2017-02-15 23:28:02 -0500 |
commit | f642de16c86e9f31d084aa98a50d3a2c923450c2 (patch) | |
tree | 31a2b54cd28ed5c538edd1ecd11ac0e016e515d5 /drivers/dma-buf | |
parent | a49bf8fb0a311cc8f68329e9853c15c6f0d12f9e (diff) |
dma-buf/dma-fence: improve doc for dma_fence_add_callback()
Document return values for this function.
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170215175725.6692-1-gustavo@padovan.org
Diffstat (limited to 'drivers/dma-buf')
-rw-r--r-- | drivers/dma-buf/dma-fence.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c index d1f1f456f5c4..809b397e915f 100644 --- a/drivers/dma-buf/dma-fence.c +++ b/drivers/dma-buf/dma-fence.c | |||
@@ -239,6 +239,8 @@ EXPORT_SYMBOL(dma_fence_enable_sw_signaling); | |||
239 | * after it signals with dma_fence_signal. The callback itself can be called | 239 | * after it signals with dma_fence_signal. The callback itself can be called |
240 | * from irq context. | 240 | * from irq context. |
241 | * | 241 | * |
242 | * Returns 0 in case of success, -ENOENT if the fence is already signaled | ||
243 | * and -EINVAL in case of error. | ||
242 | */ | 244 | */ |
243 | int dma_fence_add_callback(struct dma_fence *fence, struct dma_fence_cb *cb, | 245 | int dma_fence_add_callback(struct dma_fence *fence, struct dma_fence_cb *cb, |
244 | dma_fence_func_t func) | 246 | dma_fence_func_t func) |