[FE training-materials-updates] DMA: add LaTeX macros

Michael Opdenacker michael.opdenacker at free-electrons.com
Fri Dec 11 09:07:50 CET 2015

Repository : git://git.free-electrons.com/training-materials.git
On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=acb6f682fc62dbe01f24a2ae5aff58acc220b8c1


commit acb6f682fc62dbe01f24a2ae5aff58acc220b8c1
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date:   Fri Dec 11 09:07:50 2015 +0100

    DMA: add LaTeX macros
    Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>


 .../kernel-driver-development-dma.tex                  | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/slides/kernel-driver-development-dma/kernel-driver-development-dma.tex b/slides/kernel-driver-development-dma/kernel-driver-development-dma.tex
index 3c0d971..ea7b5ed 100644
--- a/slides/kernel-driver-development-dma/kernel-driver-development-dma.tex
+++ b/slides/kernel-driver-development-dma/kernel-driver-development-dma.tex
@@ -201,22 +201,22 @@ void dma_unmap_single(struct device *dev, dma_addr_t handdle,
     following functions from your driver
     \item Request a channel for exclusive use with
-      \code{dma_request_channel}, or one of its variants
+      \kfunc{dma_request_channel}, or one of its variants
     \item Configure it for our use case, by filling a
-      \code{dma_slave_config} structures with various parameters
+      \kstruct{dma_slave_config} structure with various parameters
       (source and destination adresses, accesses width, etc.) and
-      passing it as an argument to \code{dmaengine_slave_config}
+      passing it as an argument to \kfunc{dmaengine_slave_config}
     \item Start a new transaction with
-      \code{dmaengine_prep_slave_single} or
-      \code{dmaengine_prep_slave_sg}
+      \kfunc{dmaengine_prep_slave_single} or
+      \kfunc{dmaengine_prep_slave_sg}
     \item Put the transaction in the driver pending queue using
-      \code{dmaengine_submit}
+      \kfunc{dmaengine_submit}
     \item And finally ask the driver to process all pending
-      transactions using \code{dmaengine_issue_pending}
+      transactions using \kfunc{dmaengine_issue_pending}
   \item Of course, this needs to be done in addition to the DMA
     mapping seen previously
-  \item Some frameworks abstract it away from you, such as \code{SPI}
-    and \code{ASoC}
+  \item Some frameworks abstract it away from you, such as {\em SPI}
+    and {\em ASoC}

More information about the training-materials-updates mailing list