summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchel Humpherys <mitchelh@codeaurora.org>2015-09-30 14:22:39 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:14:27 -0700
commitb6d3fe22042b31a35d6830eeebaf5ca9ff4a1da6 (patch)
tree8756beb24eadd7a205ab5090acf94bd841bd8be8
parent8387b734ea3dca2166db165f5ff5ab7ad0adf42e (diff)
iommu/io-pgtable: Improve documentation of .map_sg callback
The return value of the .map_sg callback is currently undocumented. Document it. Change-Id: I195cbfb78eaf173d916dd03190f89b2fe04e144e Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
-rw-r--r--drivers/iommu/io-pgtable.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iommu/io-pgtable.h b/drivers/iommu/io-pgtable.h
index f74f148ea76f..5d3848aeba07 100644
--- a/drivers/iommu/io-pgtable.h
+++ b/drivers/iommu/io-pgtable.h
@@ -77,7 +77,8 @@ struct io_pgtable_cfg {
* struct io_pgtable_ops - Page table manipulation API for IOMMU drivers.
*
* @map: Map a physically contiguous memory region.
- * @map_sg: Map a scatterlist. The size parameter contains the size
+ * @map_sg: Map a scatterlist. Returns the number of bytes mapped,
+ * or 0 on failure. The size parameter contains the size
* of the partial mapping in case of failure.
* @unmap: Unmap a physically contiguous memory region.
* @iova_to_phys: Translate iova to physical address.