linux/drivers/misc/genwqe
Christophe JAILLET 5e87622c4b misc: genwqe: Remove usage of the deprecated "pci-dma-compat.h" 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].

Finally, Arnd Bergmann reminded that the documentation was updated 11 years
ago to only describe the modern linux/dma-mapping.h interfaces and mark the
old bus-specific ones as no longer recommended, see commit 216bf58f40
("Documentation: convert PCI-DMA-mapping.txt to use the generic DMA API").

A coccinelle script has been used to perform the needed transformation
Only relevant parts are given below.

@@ @@
-    PCI_DMA_BIDIRECTIONAL
+    DMA_BIDIRECTIONAL@@

@@
expression e1, e2, e3, e4, e5;
@@
-    pci_map_page(e1, e2, e3, e4, e5)
+    dma_map_page(&e1->dev, e2, e3, e4, e5)

@@
expression e1, e2, e3, e4;
@@
-    pci_unmap_page(e1, e2, e3, e4)
+    dma_unmap_page(&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/

Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/590154f2ab113088346ae76c3f13f8b1cbebccbb.1631942274.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-09-21 16:15:57 +02:00
..
card_base.c misc: genwqe: Use dma_set_mask_and_coherent to simplify code 2020-12-09 19:43:02 +01:00
card_base.h Driver Core and debugfs changes for 5.3-rc1 2019-07-12 12:24:03 -07:00
card_ddcb.c misc: genwqe: Rudimentary typo fixes 2021-03-28 14:39:40 +02:00
card_ddcb.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 118 2019-05-24 17:39:02 +02:00
card_debugfs.c misc: genwqe: card_debugfs: Demote file header from kerneldoc 2020-07-01 15:08:02 +02:00
card_dev.c misc: genwqe: card_dev: Whole host of kerneldoc fixes 2020-07-01 15:05:38 +02:00
card_sysfs.c misc: genwqe: card_sysfs: Demote function/file headers from kerneldoc 2020-07-01 15:08:02 +02:00
card_utils.c misc: genwqe: Remove usage of the deprecated "pci-dma-compat.h" API 2021-09-21 16:15:57 +02:00
genwqe_driver.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 289 2019-06-05 17:36:38 +02:00
Kconfig Merge 5.2-rc4 into char-misc-next 2019-06-09 09:11:21 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00