aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/msi.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2020-08-26 13:16:45 +0200
committerThomas Gleixner <tglx@linutronix.de>2020-09-16 16:52:34 +0200
commitdfb9eb7cf6cd0c0b0f2a1111fcc47b0a297b097d (patch)
tree05ce8a7fa947d7bfd943c09a9f77b1ec36e4e383 /include/linux/msi.h
parentx86/irq: Consolidate UV domain allocation (diff)
downloadlinux-dev-dfb9eb7cf6cd0c0b0f2a1111fcc47b0a297b097d.tar.xz
linux-dev-dfb9eb7cf6cd0c0b0f2a1111fcc47b0a297b097d.zip
PCI/MSI: Rework pci_msi_domain_calc_hwirq()
Retrieve the PCI device from the msi descriptor instead of doing so at the call sites. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20200826112332.352583299@linutronix.de
Diffstat (limited to 'include/linux/msi.h')
-rw-r--r--include/linux/msi.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/msi.h b/include/linux/msi.h
index 8ad679e9d9c0..d360cc7c4f94 100644
--- a/include/linux/msi.h
+++ b/include/linux/msi.h
@@ -369,8 +369,7 @@ void pci_msi_domain_write_msg(struct irq_data *irq_data, struct msi_msg *msg);
struct irq_domain *pci_msi_create_irq_domain(struct fwnode_handle *fwnode,
struct msi_domain_info *info,
struct irq_domain *parent);
-irq_hw_number_t pci_msi_domain_calc_hwirq(struct pci_dev *dev,
- struct msi_desc *desc);
+irq_hw_number_t pci_msi_domain_calc_hwirq(struct msi_desc *desc);
int pci_msi_domain_check_cap(struct irq_domain *domain,
struct msi_domain_info *info, struct device *dev);
u32 pci_msi_domain_get_msi_rid(struct irq_domain *domain, struct pci_dev *pdev);