mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
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:
parent
71c6e7808e
commit
9f331c50b3
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user