Unverified Commit 6f517e04 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Krzysztof Wilczyński
Browse files

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

The pci_epf_ops struct for the PCI endpoint test 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-5-lars@metafoo.de


Signed-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 c21b53de
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -973,7 +973,7 @@ static int pci_epf_test_probe(struct pci_epf *epf,
	return 0;
}

static struct pci_epf_ops ops = {
static const struct pci_epf_ops ops = {
	.unbind	= pci_epf_test_unbind,
	.bind	= pci_epf_test_bind,
};