OSDN Git Service

scsi: lpfc: Fix a function name in comments
authorCai Huoqing <caihuoqing@baidu.com>
Sat, 25 Sep 2021 12:53:23 +0000 (20:53 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 29 Sep 2021 03:18:06 +0000 (23:18 -0400)
Use dma_map_sg() instead of pci_map_sg() in comments.

Link: https://lore.kernel.org/r/20210925125324.1760-3-caihuoqing@baidu.com
Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_scsi.c

index 078fbea..f25a9ba 100644 (file)
@@ -894,7 +894,7 @@ lpfc_scsi_prep_dma_buf_s3(struct lpfc_hba *phba, struct lpfc_io_buf *lpfc_cmd)
        bpl += 2;
        if (scsi_sg_count(scsi_cmnd)) {
                /*
-                * The driver stores the segment count returned from pci_map_sg
+                * The driver stores the segment count returned from dma_map_sg
                 * because this a count of dma-mappings used to map the use_sg
                 * pages.  They are not guaranteed to be the same for those
                 * architectures that implement an IOMMU.
@@ -2590,7 +2590,7 @@ lpfc_bg_scsi_prep_dma_buf_s3(struct lpfc_hba *phba,
        bpl += 2;
        if (scsi_sg_count(scsi_cmnd)) {
                /*
-                * The driver stores the segment count returned from pci_map_sg
+                * The driver stores the segment count returned from dma_map_sg
                 * because this a count of dma-mappings used to map the use_sg
                 * pages.  They are not guaranteed to be the same for those
                 * architectures that implement an IOMMU.
@@ -3250,7 +3250,7 @@ lpfc_scsi_prep_dma_buf_s4(struct lpfc_hba *phba, struct lpfc_io_buf *lpfc_cmd)
         */
        if (scsi_sg_count(scsi_cmnd)) {
                /*
-                * The driver stores the segment count returned from pci_map_sg
+                * The driver stores the segment count returned from dma_map_sg
                 * because this a count of dma-mappings used to map the use_sg
                 * pages.  They are not guaranteed to be the same for those
                 * architectures that implement an IOMMU.
@@ -3489,7 +3489,7 @@ lpfc_bg_scsi_prep_dma_buf_s4(struct lpfc_hba *phba,
         */
        if (scsi_sg_count(scsi_cmnd)) {
                /*
-                * The driver stores the segment count returned from pci_map_sg
+                * The driver stores the segment count returned from dma_map_sg
                 * because this a count of dma-mappings used to map the use_sg
                 * pages.  They are not guaranteed to be the same for those
                 * architectures that implement an IOMMU.