summaryrefslogtreecommitdiffstats
path: root/drivers/dma-buf
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2016-12-29 15:48:25 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-12-30 07:34:16 -0500
commite9b4d7b56f293ed4de9ff7d16759d33492f83180 (patch)
tree60c7aa0abb5d7b37fc24e95a7094ef3a70c81bb2 /drivers/dma-buf
parentf641d3b536e559dd2bae9245ec2e7d86cdf623fd (diff)
dma-buf: Use recommended structure member reference
I just learned that &struct_name.member_name works and looks pretty even. It doesn't (yet) link to the member directly though, which would be really good for big structures or vfunc tables (where the per-member kerneldoc tends to be long). Cc: Sumit Semwal <sumit.semwal@linaro.org> Cc: Jani Nikula <jani.nikula@linux.intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1483044517-5770-5-git-send-email-daniel.vetter@ffwll.ch
Diffstat (limited to 'drivers/dma-buf')
-rw-r--r--drivers/dma-buf/dma-buf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/dma-buf/dma-buf.c b/drivers/dma-buf/dma-buf.c
index ab814aff0a5b..718f832a5c71 100644
--- a/drivers/dma-buf/dma-buf.c
+++ b/drivers/dma-buf/dma-buf.c
@@ -516,9 +516,8 @@ EXPORT_SYMBOL_GPL(dma_buf_get);
516 * Uses file's refcounting done implicitly by fput(). 516 * Uses file's refcounting done implicitly by fput().
517 * 517 *
518 * If, as a result of this call, the refcount becomes 0, the 'release' file 518 * If, as a result of this call, the refcount becomes 0, the 'release' file
519 * operation related to this fd is called. It calls the release operation of 519 * operation related to this fd is called. It calls &dma_buf_ops.release vfunc
520 * &struct dma_buf_ops in turn, and frees the memory allocated for dmabuf when 520 * in turn, and frees the memory allocated for dmabuf when exported.
521 * exported.
522 */ 521 */
523void dma_buf_put(struct dma_buf *dmabuf) 522void dma_buf_put(struct dma_buf *dmabuf)
524{ 523{