powerpc/pseries: Make pseries_get_iov_fw_value() & pnv_iov_get() pci_dev const

Convert input pci_dev for pseries_get_iov_fw_value() and pnv_iov_get() to
const to be able to convert pcibios_iov_resource_alignment() as well in an
upcoming change.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20260429122617.7324-7-ilpo.jarvinen@linux.intel.com
This commit is contained in:
Ilpo Järvinen 2026-04-29 15:26:12 +03:00 committed by Bjorn Helgaas
parent 71c6e7808e
commit 9f331c50b3
2 changed files with 3 additions and 2 deletions

View File

@ -251,7 +251,7 @@ struct pnv_iov_data {
struct resource holes[PCI_SRIOV_NUM_BARS];
};
static inline struct pnv_iov_data *pnv_iov_get(struct pci_dev *pdev)
static inline struct pnv_iov_data *pnv_iov_get(const struct pci_dev *pdev)
{
return pdev->dev.archdata.iov_data;
}

View File

@ -658,7 +658,8 @@ enum get_iov_fw_value_index {
WDW_SIZE = 3 /* Get Window Size */
};
static resource_size_t pseries_get_iov_fw_value(struct pci_dev *dev, int resno,
static resource_size_t pseries_get_iov_fw_value(const struct pci_dev *dev,
int resno,
enum get_iov_fw_value_index value)
{
const int *indexes;