diff options
author | Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> | 2024-04-30 11:43:43 +0530 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2024-05-28 11:13:48 -0500 |
commit | 4edd7dc82bd6be6989c034ccbbbccdc61034e33b (patch) | |
tree | a34c9f8c69e131b5bc4ae7cedd40628ac463c8c2 /include | |
parent | 6859e4f22af359de2fe49c92c3323f20e53e9031 (diff) | |
download | lwn-4edd7dc82bd6be6989c034ccbbbccdc61034e33b.tar.gz lwn-4edd7dc82bd6be6989c034ccbbbccdc61034e33b.zip |
PCI: endpoint: Rename core_init() callback in 'struct pci_epc_event_ops' to epc_init()
core_init() callback is used to notify the EPC initialization event to the
EPF drivers. The 'core' prefix was used indicate that the controller IP
core has completed initialization. But it serves no purpose as the EPF
driver will only care about the EPC initialization as a whole and there is
no real benefit to distinguish the IP core part.
Rename the core_init() callback in 'struct pci_epc_event_ops' to epc_init()
to make it more clear.
Link: https://lore.kernel.org/linux-pci/20240430-pci-epf-rework-v4-2-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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pci-epf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/pci-epf.h b/include/linux/pci-epf.h index adee6a1b35db..afe3bfd88742 100644 --- a/include/linux/pci-epf.h +++ b/include/linux/pci-epf.h @@ -70,13 +70,13 @@ struct pci_epf_ops { /** * struct pci_epc_event_ops - Callbacks for capturing the EPC events - * @core_init: Callback for the EPC initialization complete event + * @epc_init: Callback for the EPC initialization complete event * @link_up: Callback for the EPC link up event * @link_down: Callback for the EPC link down event * @bme: Callback for the EPC BME (Bus Master Enable) event */ struct pci_epc_event_ops { - int (*core_init)(struct pci_epf *epf); + int (*epc_init)(struct pci_epf *epf); int (*link_up)(struct pci_epf *epf); int (*link_down)(struct pci_epf *epf); int (*bme)(struct pci_epf *epf); |