]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: histb: Constify dw_pcie_host_ops structure
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sat, 27 Oct 2018 18:31:19 +0000 (20:31 +0200)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 8 Nov 2018 13:54:44 +0000 (13:54 +0000)
commitb517a97da3387eb1a87a4a54eb9cc5617048bde5
treec28b8f5b25a7821484598c231659e93842c99beb
parenta9e80a095d95d1159b26f73bd6d9c2fadc7fb411
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>
drivers/pci/controller/dwc/pcie-histb.c