2007-08-08 10:59:36

by saeed bishara

[permalink] [raw]
Subject: [PATCH] use sg helper function in DMA mapping documentation

Signed-off-by: Saeed Bishara <[email protected]>
---
DMA-mapping.txt | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)


--- a/Documentation/DMA-mapping.txt 2007-08-08 12:51:07.000000000 +0300
+++ b/Documentation/DMA-mapping.txt 2007-08-08 12:50:02.000000000 +0300
@@ -514,7 +514,7 @@
int i, count = pci_map_sg(dev, sglist, nents, direction);
struct scatterlist *sg;

- for (i = 0, sg = sglist; i < count; i++, sg++) {
+ for_each_sg(sglist, sg, count, i) {
hw_address[i] = sg_dma_address(sg);
hw_len[i] = sg_dma_len(sg);
}


2007-08-08 11:06:28

by Jens Axboe

[permalink] [raw]
Subject: Re: [PATCH] use sg helper function in DMA mapping documentation

On Wed, Aug 08 2007, saeed bishara wrote:
> Signed-off-by: Saeed Bishara <[email protected]>
> ---
> DMA-mapping.txt | 2 +-
> 1 files changed, 1 insertion(+), 1 deletion(-)

Good catch, will add that to the sglist branch. Thanks!

--
Jens Axboe