dma-buf/fence-array: add fence_is_array()
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Fri, 5 Aug 2016 13:39:34 +0000 (10:39 -0300)
committerSumit Semwal <sumit.semwal@linaro.org>
Thu, 11 Aug 2016 10:03:23 +0000 (15:33 +0530)
commite1aaf311dbe82221910cc0e0809c988de210cc3c
tree942432e8bdf1eed9f9cdaca00711604f571c9d8f
parent9622c38f1cbab00aa2f52715ec950c5c5f838aa5
dma-buf/fence-array: add fence_is_array()

Add helper to check if fence is array.

v2: Comments from Chris Wilson
- remove ternary if from ops comparison
- add EXPORT_SYMBOL(fence_array_ops)

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Christian König <christian.koenig@amd.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
drivers/dma-buf/fence-array.c
include/linux/fence-array.h