From: Bhumika Goyal Date: Wed, 9 Aug 2017 07:48:48 +0000 (+0530) Subject: PCI: kirin: Constify dw_pcie_host_ops structure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=db2af315212181c8815bed2454e16093a6128e89;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git PCI: kirin: Constify dw_pcie_host_ops structure 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 Signed-off-by: Bjorn Helgaas --- diff --git a/drivers/pci/dwc/pcie-kirin.c b/drivers/pci/dwc/pcie-kirin.c index 33fddb9f6739..a623f96535e6 100644 --- a/drivers/pci/dwc/pcie-kirin.c +++ b/drivers/pci/dwc/pcie-kirin.c @@ -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,