PCI: kirin: Constify dw_pcie_host_ops structure
authorBhumika Goyal <bhumirks@gmail.com>
Wed, 9 Aug 2017 07:48:48 +0000 (13:18 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 19 Aug 2017 21:23:24 +0000 (16:23 -0500)
Make this structure const as it is only stored in the ops field of a
pcie_port structure, which is of type const.  Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/dwc/pcie-kirin.c

index 33fddb9f6739bf758d2c6a4e3dfbc464b7eae049..a623f96535e62c2d2022056d9e1e5d4adcb4b08d 100644 (file)
@@ -441,7 +441,7 @@ static struct dw_pcie_ops kirin_dw_pcie_ops = {
        .link_up = kirin_pcie_link_up,
 };
 
-static struct dw_pcie_host_ops kirin_pcie_host_ops = {
+static const struct dw_pcie_host_ops kirin_pcie_host_ops = {
        .rd_own_conf = kirin_pcie_rd_own_conf,
        .wr_own_conf = kirin_pcie_wr_own_conf,
        .host_init = kirin_pcie_host_init,