summaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2018-10-27 20:31:19 +0200
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2018-11-08 13:54:44 +0000
commitb69f4abc125f6f4eada8423b5d8637c7550f90a0 (patch)
treec28b8f5b25a7821484598c231659e93842c99beb /drivers/pci/controller/dwc
parent651022382c7f8da46cb4872a545ee1da6d097d2a (diff)
downloadlinux-stable-b69f4abc125f6f4eada8423b5d8637c7550f90a0.tar.gz
linux-stable-b69f4abc125f6f4eada8423b5d8637c7550f90a0.tar.bz2
linux-stable-b69f4abc125f6f4eada8423b5d8637c7550f90a0.zip
PCI: histb: Constify dw_pcie_host_ops structure
The dw_pcie_host_ops structure is only stored in the ops field of a pcie_port structure, and this field is const, so make the dw_pcie_host_ops structure const as well. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'drivers/pci/controller/dwc')
-rw-r--r--drivers/pci/controller/dwc/pcie-histb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/controller/dwc/pcie-histb.c b/drivers/pci/controller/dwc/pcie-histb.c
index 7b32e619b959..954bc2b74bbc 100644
--- a/drivers/pci/controller/dwc/pcie-histb.c
+++ b/drivers/pci/controller/dwc/pcie-histb.c
@@ -202,7 +202,7 @@ static int histb_pcie_host_init(struct pcie_port *pp)
return 0;
}
-static struct dw_pcie_host_ops histb_pcie_host_ops = {
+static const struct dw_pcie_host_ops histb_pcie_host_ops = {
.rd_own_conf = histb_pcie_rd_own_conf,
.wr_own_conf = histb_pcie_wr_own_conf,
.host_init = histb_pcie_host_init,