[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 8 Aug 2007 13:59:26 +0300
From: "saeed bishara" <saeed.bishara@...il.com>
To: trivial@...nel.org, linux-kernel@...r.kernel.org,
"Jens Axboe" <jens.axboe@...cle.com>
Cc: "saeed bishara" <saeed.bishara@...il.com>
Subject: [PATCH] use sg helper function in DMA mapping documentation
Signed-off-by: Saeed Bishara <saeed.bishara@...il.com>
---
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);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists