diff options
author | Simon Glass | 2020-01-27 08:49:37 -0700 |
---|---|---|
committer | Simon Glass | 2020-02-05 19:33:45 -0700 |
commit | c4e72c4ad8b7c2db9c868bd053c25344b95900b8 (patch) | |
tree | fd7f628f007e60b6a9f69d94b14421ffe226ae27 /drivers/pci/pci_x86.c | |
parent | fc347fbdd44a01b1aba6283dec56c1374baca383 (diff) |
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/pci_x86.c')
-rw-r--r-- | drivers/pci/pci_x86.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pci/pci_x86.c b/drivers/pci/pci_x86.c index e76a9c6e44f..8d036930e73 100644 --- a/drivers/pci/pci_x86.c +++ b/drivers/pci/pci_x86.c @@ -8,8 +8,9 @@ #include <pci.h> #include <asm/pci.h> -static int _pci_x86_read_config(struct udevice *bus, pci_dev_t bdf, uint offset, - ulong *valuep, enum pci_size_t size) +static int _pci_x86_read_config(const struct udevice *bus, pci_dev_t bdf, + uint offset, ulong *valuep, + enum pci_size_t size) { return pci_x86_read_config(bdf, offset, valuep, size); } |