]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: endpoint: pci-epf-test: Refactor pci_epf_test_unbind() function
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tue, 30 Apr 2024 06:13:46 +0000 (11:43 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 28 May 2024 16:13:48 +0000 (11:13 -0500)
commit942ceba0e4fcc935dc22dd40f5510325e1e96d47
tree3a5181457e738ff7d2b2b2d4f1d8f5c8ee143d3a
parentf58838d7feb04809257f54a8b256786d2f9dfe01
PCI: endpoint: pci-epf-test: Refactor pci_epf_test_unbind() function

Move the pci_epc_clear_bar() and pci_epf_free_space() code to respective
helper functions. This allows reusing the helpers in future commits.

This also requires moving the pci_epf_test_unbind() definition below
pci_epf_test_bind() to avoid forward declaration of the above helpers.

No functional change.

Link: https://lore.kernel.org/linux-pci/20240430-pci-epf-rework-v4-5-22832d0d456f@linaro.org
Tested-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Krzysztof WilczyƄski <kwilczynski@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
drivers/pci/endpoint/functions/pci-epf-test.c