PCI: qcom-ep: Constify static dw_pcie_ep_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sat, 4 Dec 2021 22:03:16 +0000 (23:03 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 4 Jan 2022 15:29:14 +0000 (15:29 +0000)
commit840a720aaa14dbc6c79782210d759fe9cf181838
tree4b0f04027cf71777620363089c3814432f4790fd
parent3f13d611aa6be3a500d696b0699938dcb39a9887
PCI: qcom-ep: Constify static dw_pcie_ep_ops

The only usage of pci_ep_ops is to assign its address to the ops field
in the dw_pcie_ep struct which is a pointer to const struct dw_pcie_ep_ops.
Make it const to allow the compiler to put it in read-only memory.

Link: https://lore.kernel.org/r/20211204220316.88655-1-rikard.falkeborn@gmail.com
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Krzysztof WilczyƄski <kw@linux.com>
drivers/pci/controller/dwc/pcie-qcom-ep.c