PCI: epf-test: Simplify pci_epf_test_raise_irq()
authorDamien Le Moal <dlemoal@kernel.org>
Sat, 15 Apr 2023 02:35:32 +0000 (11:35 +0900)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 23 Jun 2023 20:00:50 +0000 (15:00 -0500)
commit5444737e16402db4a62fdf521a02c68fa84153a6
tree9bcb0f59ebb8b2dbae0b548da7ea1c8d477df2ca
parent62d48ec7ef87d65723e3efcbfa6178cf2f7d8156
PCI: epf-test: Simplify pci_epf_test_raise_irq()

Change the interface of the function pci_epf_test_raise_irq() to directly
pass a pointer to the struct pci_epf_test_reg defining the test being
executed. This avoids the need for grabbing this pointer using the register
BAR address and simplifies the call sites as the IRQ type and IRQ numbers
do not have to be passed as arguments.

Link: https://lore.kernel.org/r/20230415023542.77601-8-dlemoal@kernel.org
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
drivers/pci/endpoint/functions/pci-epf-test.c