mirror of
https://xff.cz/git/u-boot/
synced 2025-11-02 03:17:29 +01:00
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>
This commit is contained in:
@@ -297,7 +297,7 @@ static int pcie_advk_check_pio_status(struct pcie_advk *pcie,
|
||||
*
|
||||
* Return: 0 on success
|
||||
*/
|
||||
static int pcie_advk_read_config(struct udevice *bus, pci_dev_t bdf,
|
||||
static int pcie_advk_read_config(const struct udevice *bus, pci_dev_t bdf,
|
||||
uint offset, ulong *valuep,
|
||||
enum pci_size_t size)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user