diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-08-27 21:56:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-29 10:50:24 +0100 |
commit | 27d57f85102b3746f19ccd7b79c3a7f8aa8b8714 (patch) | |
tree | fd1e962c561cb87ca41b69236bdcc88bf28d9e99 /drivers/net/fddi | |
parent | dce677da57c0edac7a53f1fce58fca180b7ea89b (diff) | |
download | linux-stable-27d57f85102b3746f19ccd7b79c3a7f8aa8b8714.tar.gz linux-stable-27d57f85102b3746f19ccd7b79c3a7f8aa8b8714.tar.bz2 linux-stable-27d57f85102b3746f19ccd7b79c3a7f8aa8b8714.zip |
net: spider_net: switch from 'pci_' to 'dma_' API
In [1], Christoph Hellwig has proposed to remove the wrappers in
include/linux/pci-dma-compat.h.
Some reasons why this API should be removed have been given by Julia
Lawall in [2].
A coccinelle script has been used to perform the needed transformation
Only relevant parts are given below.
@@ @@
- PCI_DMA_BIDIRECTIONAL
+ DMA_BIDIRECTIONAL
@@ @@
- PCI_DMA_TODEVICE
+ DMA_TO_DEVICE
@@ @@
- PCI_DMA_FROMDEVICE
+ DMA_FROM_DEVICE
@@
expression e1, e2, e3, e4;
@@
- pci_map_single(e1, e2, e3, e4)
+ dma_map_single(&e1->dev, e2, e3, e4)
@@
expression e1, e2, e3, e4;
@@
- pci_unmap_single(e1, e2, e3, e4)
+ dma_unmap_single(&e1->dev, e2, e3, e4)
@@
expression e1, e2;
@@
- pci_dma_mapping_error(e1, e2)
+ dma_mapping_error(&e1->dev, e2)
[1]: https://lore.kernel.org/kernel-janitors/20200421081257.GA131897@infradead.org/
[2]: https://lore.kernel.org/kernel-janitors/alpine.DEB.2.22.394.2007120902170.2424@hadrien/
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/fddi')
0 files changed, 0 insertions, 0 deletions