projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab650ef
)
dmaengine: doc: client: Update for dmaengine_get_dma_device() usage
author
Peter Ujfalusi
<peter.ujfalusi@ti.com>
Tue, 8 Dec 2020 09:04:29 +0000
(11:04 +0200)
committer
Vinod Koul
<vkoul@kernel.org>
Fri, 11 Dec 2020 15:50:08 +0000
(21:20 +0530)
Client drivers should use the dmaengine_get_dma_device(chan) to get the
device pointer which should be used for DMA API for allocations and
mapping.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link:
https://lore.kernel.org/r/20201208090440.31792-10-peter.ujfalusi@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Documentation/driver-api/dmaengine/client.rst
patch
|
blob
|
history
diff --git
a/Documentation/driver-api/dmaengine/client.rst
b/Documentation/driver-api/dmaengine/client.rst
index 09a3f66dcd263e4e366eb49cb489b6d7455ec648..bfd057b21a0000f704cfbd5a2ce26f37075642e6 100644
(file)
--- a/
Documentation/driver-api/dmaengine/client.rst
+++ b/
Documentation/driver-api/dmaengine/client.rst
@@
-120,7
+120,9
@@
The details of these operations are:
.. code-block:: c
- nr_sg = dma_map_sg(chan->device->dev, sgl, sg_len);
+ struct device *dma_dev = dmaengine_get_dma_device(chan);
+
+ nr_sg = dma_map_sg(dma_dev, sgl, sg_len);
if (nr_sg == 0)
/* error */