]> git.ipfire.org Git - thirdparty/linux.git/commit
PCI: Deprecate pcim_iomap_regions() in favor of pcim_iomap_region()
authorPhilipp Stanner <pstanner@redhat.com>
Wed, 7 Aug 2024 08:30:18 +0000 (10:30 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 9 Aug 2024 20:08:35 +0000 (15:08 -0500)
commitd140f80f603584d8282817994c0c6241e736bef4
tree7d350388e7dfaa638e3cd870926dcde006c2a8e3
parent89121e5d0857bbf41f1987c3c6019f4f318aec4c
PCI: Deprecate pcim_iomap_regions() in favor of pcim_iomap_region()

pcim_iomap_regions() is a complicated function that uses a bit mask to
determine the BARs the user wishes to request and ioremap. Almost all users
only ever set a single bit in that mask, making that mechanism
questionable.

pcim_iomap_region() is now available as a more simple replacement.

Make pcim_iomap_region() a public function.

Mark pcim_iomap_regions() as deprecated.

Link: https://lore.kernel.org/r/20240807083018.8734-2-pstanner@redhat.com
Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/devres.c
include/linux/pci.h