]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
LinuxKPI: pci.h make pci_dev argument const for pci_{read,write}_config*()
authorBjoern A. Zeeb <bz@FreeBSD.org>
Mon, 25 Oct 2021 17:06:09 +0000 (17:06 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Mon, 25 Oct 2021 20:17:56 +0000 (20:17 +0000)
commited5600f5329fad8b167bed0a5ae8a5f60d12258e
tree6afb37a05d4ce8e2836eeef29528ce4b4234ed1c
parent490f9d8f0e7ce8c5b268fcd0806c5e00214eb5a7
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
MFC after: 3 days
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D32644
sys/compat/linuxkpi/common/include/linux/pci.h