diff options
author | Jisheng Zhang <jszhang@marvell.com> | 2017-06-05 11:53:46 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-07-03 02:38:50 +0300 |
commit | 4ab2e7c0df6b8bbc6c8ea1617b737d33c2510012 (patch) | |
tree | 4c837c914e7898976ac632331a9db4070270d0c8 /drivers/pci/dwc/pcie-designware.h | |
parent | 3eefa790c9681a2dcbc923542dcd85b6989e8855 (diff) | |
download | linux-4ab2e7c0df6b8bbc6c8ea1617b737d33c2510012.tar.xz |
PCI: dwc: Constify dw_pcie_host_ops structures
The dw_pcie_host_ops structures are never modified. Constify these
structures such that these can be write-protected.
Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Jingoo Han <jingoohan1@gmail.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/pci/dwc/pcie-designware.h')
-rw-r--r-- | drivers/pci/dwc/pcie-designware.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/dwc/pcie-designware.h b/drivers/pci/dwc/pcie-designware.h index c6a840575796..b4d2a89f8e58 100644 --- a/drivers/pci/dwc/pcie-designware.h +++ b/drivers/pci/dwc/pcie-designware.h @@ -162,7 +162,7 @@ struct pcie_port { struct resource *mem; struct resource *busn; int irq; - struct dw_pcie_host_ops *ops; + const struct dw_pcie_host_ops *ops; int msi_irq; struct irq_domain *irq_domain; unsigned long msi_data; |