From: Bhumika Goyal Date: Wed, 9 Aug 2017 07:48:48 +0000 (+0530) Subject: PCI: hisi: Constify dw_pcie_host_ops structure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5a47516801893846b36cfc63600b4ccc1808f3ba;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git PCI: hisi: 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-hisi.c b/drivers/pci/dwc/pcie-hisi.c index 6631654f95a5..a20179169e06 100644 --- a/drivers/pci/dwc/pcie-hisi.c +++ b/drivers/pci/dwc/pcie-hisi.c @@ -223,7 +223,7 @@ static int hisi_pcie_link_up(struct dw_pcie *pci) return hisi_pcie->soc_ops->hisi_pcie_link_up(hisi_pcie); } -static struct dw_pcie_host_ops hisi_pcie_host_ops = { +static const struct dw_pcie_host_ops hisi_pcie_host_ops = { .rd_own_conf = hisi_pcie_cfg_read, .wr_own_conf = hisi_pcie_cfg_write, };