dm: pci: Update the PCI read_config() method to const dev *
authorSimon Glass <sjg@chromium.org>
Mon, 27 Jan 2020 15:49:37 +0000 (08:49 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Feb 2020 02:33:45 +0000 (19:33 -0700)
commitc4e72c4ad8b7c2db9c868bd053c25344b95900b8
treefd7f628f007e60b6a9f69d94b14421ffe226ae27
parentfc347fbdd44a01b1aba6283dec56c1374baca383
dm: pci: Update the PCI read_config() method to const dev *

At present this method uses a non-const udevice pointer, but the call
should not modify the device. Use a const pointer.

Signed-off-by: Simon Glass <sjg@chromium.org>
26 files changed:
drivers/misc/p2sb_emul.c
drivers/misc/swap_case.c
drivers/pci/pci-aardvark.c
drivers/pci/pci-emul-uclass.c
drivers/pci/pci-rcar-gen2.c
drivers/pci/pci-rcar-gen3.c
drivers/pci/pci-uclass.c
drivers/pci/pci_mpc85xx.c
drivers/pci/pci_mvebu.c
drivers/pci/pci_sandbox.c
drivers/pci/pci_sh7751.c
drivers/pci/pci_tegra.c
drivers/pci/pci_x86.c
drivers/pci/pcie_dw_mvebu.c
drivers/pci/pcie_dw_ti.c
drivers/pci/pcie_ecam_generic.c
drivers/pci/pcie_fsl.c
drivers/pci/pcie_imx.c
drivers/pci/pcie_intel_fpga.c
drivers/pci/pcie_layerscape.c
drivers/pci/pcie_layerscape_gen4.c
drivers/pci/pcie_mediatek.c
drivers/pci/pcie_phytium.c
drivers/pci/pcie_xilinx.c
drivers/power/acpi_pmc/pmc_emul.c
include/pci.h