WSL2-Linux-Kernel/drivers/net/fddi/skfp
Christophe JAILLET a3ba7fd1d3 fddi: 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.

It has been compile tested.

@@ @@
-    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)

[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>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-08-29 10:50:24 +01:00
..
h net: fddi: skfp: remove leading spaces before tabs 2021-05-20 15:10:57 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cfm.c net: fddi: skfp: cfm: Remove seemingly unused variable 'ID_sccs' 2020-08-14 20:42:25 -07:00
drvfbi.c net: fddi: skfp: drvfbi: Remove defined but unused variable 'ID_sccs' 2020-11-03 16:34:51 -08:00
ecm.c net: fddi: skfp: ecm: Remove seemingly unused variable 'ID_sccs' 2020-11-03 16:30:52 -08:00
ess.c net: fddi: skfp: remove leading spaces before tabs 2021-05-20 15:10:57 -07:00
fplustm.c net: fddi: skfp: fplustm: Remove seemingly unused variable 'ID_sccs' 2020-08-14 20:42:25 -07:00
hwmtm.c net: fddi: skfp: hwmtm: Remove seemingly unused variable 'ID_sccs' 2020-08-14 20:42:25 -07:00
hwt.c net: fddi: skfp: hwt: Remove defined but unused variable 'ID_sccs' 2020-11-03 16:34:11 -08:00
pcmplc.c net: fddi: skfp: pcmplc: Remove defined but not used variable 'ID_sccs' 2020-11-03 16:31:25 -08:00
pmf.c net: fddi: skfp: pmf: Remove defined but unused variable 'ID_sccs' 2020-11-03 16:32:40 -08:00
queue.c net: fddi: skfp: queue: Remove defined but unused variable 'ID_sccs' 2020-11-03 16:32:52 -08:00
rmt.c net: fddi: skfp: rmt: Remove defined but unused variable 'ID_sccs' 2020-11-03 16:33:08 -08:00
skfddi.c fddi: switch from 'pci_' to 'dma_' API 2021-08-29 10:50:24 +01:00
smt.c net: fddi: skfp: smt: Replace one-element array with flexible-array member 2021-03-10 12:45:15 -08:00
smtdef.c net: fddi: skfp: smtdef: Remove defined but unused variable 'ID_sccs' 2020-11-03 16:33:18 -08:00
smtinit.c net: fddi: skfp: smtinit: Remove defined but unused variable 'ID_sccs' 2020-11-03 16:33:27 -08:00
smttimer.c net: fddi: skfp: smttimer: Remove defined but unused variable 'ID_sccs' 2020-11-03 16:34:00 -08:00
srf.c net: fddi: skfp: srf: Remove defined but unused variable 'ID_sccs' 2020-11-03 16:34:25 -08:00