aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/DMA-API-HOWTO.txt
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@iki.fi>2015-09-23 07:41:09 -0400
committerJonathan Corbet <corbet@lwn.net>2015-09-24 17:50:06 -0400
commit7bc590b2fc057f3c48b618c739517bf1af9a28fe (patch)
treeff8516085cd5098e5e0fcf83e3d72fe6564cc40c /Documentation/DMA-API-HOWTO.txt
parentc604503192718b9676a0ef5dd104b6a8acef8278 (diff)
Documentation: DMA API: Be more explicit that nents is always the same
The nents argument to the DMA API functions operating on scatterlists is always the same. The documentation used different argument names and the matter was not mentioned in Documentation/DMA-API-HOWTO.txt at all. Fix these. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/DMA-API-HOWTO.txt')
-rw-r--r--Documentation/DMA-API-HOWTO.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/DMA-API-HOWTO.txt b/Documentation/DMA-API-HOWTO.txt
index 55b70b903ead..d69b3fc64e14 100644
--- a/Documentation/DMA-API-HOWTO.txt
+++ b/Documentation/DMA-API-HOWTO.txt
@@ -681,6 +681,11 @@ or:
681 681
682as appropriate. 682as appropriate.
683 683
684PLEASE NOTE: The 'nents' argument to dma_sync_sg_for_cpu() and
685 dma_sync_sg_for_device() must be the same passed to
686 dma_map_sg(). It is _NOT_ the count returned by
687 dma_map_sg().
688
684After the last DMA transfer call one of the DMA unmap routines 689After the last DMA transfer call one of the DMA unmap routines
685dma_unmap_{single,sg}(). If you don't touch the data from the first 690dma_unmap_{single,sg}(). If you don't touch the data from the first
686dma_map_*() call till dma_unmap_*(), then you don't have to call the 691dma_map_*() call till dma_unmap_*(), then you don't have to call the