summaryrefslogtreecommitdiff
path: root/drivers/pci/pcie_intel_fpga.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-01-27 18:49:37 +0300
committerSimon Glass <sjg@chromium.org>2020-02-06 05:33:45 +0300
commitc4e72c4ad8b7c2db9c868bd053c25344b95900b8 (patch)
treefd7f628f007e60b6a9f69d94b14421ffe226ae27 /drivers/pci/pcie_intel_fpga.c
parentfc347fbdd44a01b1aba6283dec56c1374baca383 (diff)
downloadu-boot-c4e72c4ad8b7c2db9c868bd053c25344b95900b8.tar.xz
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>
Diffstat (limited to 'drivers/pci/pcie_intel_fpga.c')
-rw-r--r--drivers/pci/pcie_intel_fpga.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/pcie_intel_fpga.c b/drivers/pci/pcie_intel_fpga.c
index a5ea4888f3..a1f6e95e69 100644
--- a/drivers/pci/pcie_intel_fpga.c
+++ b/drivers/pci/pcie_intel_fpga.c
@@ -226,7 +226,7 @@ static int tlp_cfg_dword_write(struct intel_fpga_pcie *pcie, pci_dev_t bdf,
return tlp_read_packet(pcie, NULL);
}
-int intel_fpga_rp_conf_addr(struct udevice *bus, pci_dev_t bdf,
+int intel_fpga_rp_conf_addr(const struct udevice *bus, pci_dev_t bdf,
uint offset, void **paddress)
{
struct intel_fpga_pcie *pcie = dev_get_priv(bus);
@@ -326,7 +326,7 @@ static int _pcie_intel_fpga_write_config(struct intel_fpga_pcie *pcie,
byte_en, data);
}
-static int pcie_intel_fpga_read_config(struct udevice *bus, pci_dev_t bdf,
+static int pcie_intel_fpga_read_config(const struct udevice *bus, pci_dev_t bdf,
uint offset, ulong *valuep,
enum pci_size_t size)
{