linux/drivers/misc/mei
Christophe JAILLET 54fa156bb3 mei: 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.

@@
expression e1, e2;
@@
-    pci_set_dma_mask(e1, e2)
+    dma_set_mask(&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/c6f280927835c5677cc0367fccdc0ef54b307bd8.1631943364.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-09-21 17:33:41 +02:00
..
hdcp mei: hdcp: SPDX tag should be the first line 2021-06-15 17:12:58 +02:00
bus-fixup.c mei: fix kdoc in the driver 2021-06-22 12:40:31 +02:00
bus.c Driver core update for 5.15-rc1 2021-09-01 08:44:42 -07:00
client.c mei: revamp mei extension header structure layout. 2021-06-22 12:40:31 +02:00
client.h mei: constify passed buffers and structures 2021-07-29 17:08:04 +02:00
debugfs.c mei: add support for client dma capability 2021-02-06 15:48:11 +01:00
dma-ring.c mei: adjust the copyright notice in the files. 2019-03-28 02:07:54 +09:00
hbm.c mei: fix kdoc in the driver 2021-06-22 12:40:31 +02:00
hbm.h mei: implement client dma setup. 2021-02-06 15:48:11 +01:00
hw-me-regs.h mei: me: add Alder Lake P device id. 2021-04-14 21:05:59 +02:00
hw-me.c mei: fix kdoc in the driver 2021-06-22 12:40:31 +02:00
hw-me.h mei: add device kind to sysfs 2020-07-29 16:21:13 +02:00
hw-txe-regs.h mei: adjust the copyright notice in the files. 2019-03-28 02:07:54 +09:00
hw-txe.c mei: hw: use sizeof of variable instead of struct type 2020-07-23 19:33:09 +02:00
hw-txe.h mei: adjust the copyright notice in the files. 2019-03-28 02:07:54 +09:00
hw.h mei: revamp mei extension header structure layout. 2021-06-22 12:40:31 +02:00
init.c mei: allow clients on bus to communicate in remove callback 2021-02-06 15:48:11 +01:00
interrupt.c mei: revamp mei extension header structure layout. 2021-06-22 12:40:31 +02:00
Kconfig Revert "mei: virtio: virtualization frontend driver" 2020-12-06 10:36:17 +01:00
main.c mei: fix kdoc in the driver 2021-06-22 12:40:31 +02:00
Makefile Revert "mei: virtio: virtualization frontend driver" 2020-12-06 10:36:17 +01:00
mei_dev.h mei: constify passed buffers and structures 2021-07-29 17:08:04 +02:00
mei-trace.c mei: adjust the copyright notice in the files. 2019-03-28 02:07:54 +09:00
mei-trace.h treewide: Add missing semicolons to __assign_str uses 2021-06-30 09:19:14 -04:00
pci-me.c mei: me: add Alder Lake P device id. 2021-04-14 21:05:59 +02:00
pci-txe.c mei: Remove usage of the deprecated "pci-dma-compat.h" API 2021-09-21 17:33:41 +02:00