summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKexin Sun <kexinsun@smail.nju.edu.cn>2026-03-21 13:58:31 +0300
committerHelge Deller <deller@gmx.de>2026-04-17 12:32:46 +0300
commit0b6c8e21157fb6dfa35163fdfe5c10387bcc6c41 (patch)
treed12e1f120e2a901845f1c7ecf38267a05ae60be4
parent43cfbdda5af60ffc6272a7b8c5c37d1d0a181ca9 (diff)
downloadlinux-0b6c8e21157fb6dfa35163fdfe5c10387bcc6c41.tar.xz
parisc: update outdated comments for renamed ccio_alloc_consistent()
The function ccio_alloc_consistent() was renamed to ccio_alloc() by commit 79387179e2e4 ("parisc: convert to dma_map_ops"). Update the three stale references in ccio-dma.c. Also replace the obsolete PCI_DMA_TODEVICE constant name with DMA_TO_DEVICE in a nearby comment to match the code. Assisted-by: unnamed:deepseek-v3.2 coccinelle Signed-off-by: Kexin Sun <kexinsun@smail.nju.edu.cn> Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r--drivers/parisc/ccio-dma.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/parisc/ccio-dma.c b/drivers/parisc/ccio-dma.c
index d5b95e63c24e..dc1b6d11f9ab 100644
--- a/drivers/parisc/ccio-dma.c
+++ b/drivers/parisc/ccio-dma.c
@@ -503,8 +503,8 @@ typedef unsigned long space_t;
/*
-** Use direction (ie PCI_DMA_TODEVICE) to pick hint.
-** ccio_alloc_consistent() depends on this to get SAFE_DMA
+** Use direction (ie DMA_TO_DEVICE) to pick hint.
+** ccio_alloc() depends on this to get SAFE_DMA
** when it passes in BIDIRECTIONAL flag.
*/
static u32 hint_lookup[] = {
@@ -865,8 +865,8 @@ ccio_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t flag,
* ccio_free - Free a consistent DMA mapping.
* @dev: The PCI device.
* @size: The length of the DMA region.
- * @cpu_addr: The cpu address returned from the ccio_alloc_consistent.
- * @dma_handle: The device address returned from the ccio_alloc_consistent.
+ * @cpu_addr: The cpu address returned from ccio_alloc().
+ * @dma_handle: The device address returned from ccio_alloc().
* @attrs: attributes
*
* This function implements the pci_free_consistent function.