Skip to content

Commit

Permalink
labs: kernel: dma: Simplify snippet
Browse files Browse the repository at this point in the history
Signed-off-by: Miquel Raynal <[email protected]>
  • Loading branch information
miquelraynal committed Jun 20, 2024
1 parent b0a0754 commit bbd4c5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ \section{Process user write requests}
\begin{verbatim}
struct dma_async_tx_descriptor *desc;
desc = dmaengine_prep_slave_single(serial->txchan, serial->dma_addr,
desc = dmaengine_prep_slave_single(serial->txchan, dma_addr,
len, DMA_MEM_TO_DEV,
DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
if (!desc) ...
Expand Down
2 changes: 1 addition & 1 deletion labs/kernel-serial-dma/kernel-serial-dma.tex
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ \section{Process user write requests}
\begin{verbatim}
struct dma_async_tx_descriptor *desc;
desc = dmaengine_prep_slave_single(serial->txchan, serial->dma_addr + 1,
desc = dmaengine_prep_slave_single(serial->txchan, dma_addr + 1,
len - 1, DMA_MEM_TO_DEV,
DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
if (!desc) ...
Expand Down

0 comments on commit bbd4c5d

Please sign in to comment.