[PATCH] use sg helper function in DMA mapping documentation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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);
        }
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux