PCI: endpoint: Move pci_epf_type_add_cfs() code
authorDamien Le Moal <dlemoal@kernel.org>
Sat, 15 Apr 2023 02:35:27 +0000 (11:35 +0900)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 23 Jun 2023 19:59:38 +0000 (14:59 -0500)
commitf6ec33979e9ae7fcc2b5582bd3bfdfaa1fc98a78
tree34b0ba4b913520b5d82c6ee81feabc70ae70ff1f
parent70b3740f2c1941e2006d61539131b70d20cba9a6
PCI: endpoint: Move pci_epf_type_add_cfs() code

pci_epf_type_add_cfs() is called only from pci_ep_cfs_add_type_group() in
drivers/pci/endpoint/pci-ep-cfs.c, so there is no need to export this
function.  Move its code from pci-epf-core.c to pci-ep-cfs.c as a static
function.

Link: https://lore.kernel.org/r/20230415023542.77601-3-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/pci-ep-cfs.c
drivers/pci/endpoint/pci-epf-core.c
include/linux/pci-epf.h