HomeFreeBSD

LinuxKPI: pci.h make pci_dev argument const for pci_{read,write}_config*()

Description

LinuxKPI: pci.h make pci_dev argument const for pci_{read,write}_config*()

Make the struct pci_dev argument to the pci_{read,write}_config*()
functions "const" to match the Linux definition as some drivers
try to pass in a const argument which we currently fail to honor.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit ed5600f5329fad8b167bed0a5ae8a5f60d12258e)

Details

Provenance
bzAuthored on Oct 25 2021, 5:06 PM
Parents
rGdc70c937b1d6: LinuxKPI: pci.h / linux_pci.c rename pci_driver field
Branches
Unknown
Tags
Unknown