Skip to content

Commit b69f4ab

Browse files
JuliaLawallLorenzo Pieralisi
authored andcommitted
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>
1 parent 6510223 commit b69f4ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/controller/dwc/pcie-histb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static int histb_pcie_host_init(struct pcie_port *pp)
202202
return 0;
203203
}
204204

205-
static struct dw_pcie_host_ops histb_pcie_host_ops = {
205+
static const struct dw_pcie_host_ops histb_pcie_host_ops = {
206206
.rd_own_conf = histb_pcie_rd_own_conf,
207207
.wr_own_conf = histb_pcie_wr_own_conf,
208208
.host_init = histb_pcie_host_init,

0 commit comments

Comments
 (0)