Commit c21b53de authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Krzysztof Wilczyński

PCI: endpoint: pci-epf-vntb: Make struct pci_epf_ops const

The pci_epf_ops struct for the PCI endpoint vNTB driver is never modified.

Mark it as const so it can be placed in the read-only section.

[kwilczynski: commit log]
Link: https://lore.kernel.org/linux-pci/20230722230848.589428-4-lars@metafoo.deSigned-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarKrzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: default avatarManivannan Sadhasivam <mani@kernel.org>
parent 54f22c97
......@@ -1387,7 +1387,7 @@ static void epf_ntb_unbind(struct pci_epf *epf)
}
// EPF driver probe
static struct pci_epf_ops epf_ntb_ops = {
static const struct pci_epf_ops epf_ntb_ops = {
.bind = epf_ntb_bind,
.unbind = epf_ntb_unbind,
.add_cfs = epf_ntb_add_cfs,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment