diff options
author | Bhumika Goyal | 2017-08-09 09:48:48 +0200 |
---|---|---|
committer | Bjorn Helgaas | 2017-08-19 23:23:24 +0200 |
commit | db2af315212181c8815bed2454e16093a6128e89 (patch) | |
tree | 70581054f1b2d1b2b9f776be29a3c80ab9f23543 /drivers/pci/dwc | |
parent | Linux 4.13-rc3 (diff) | |
download | kernel-qcow2-linux-db2af315212181c8815bed2454e16093a6128e89.tar.gz kernel-qcow2-linux-db2af315212181c8815bed2454e16093a6128e89.tar.xz kernel-qcow2-linux-db2af315212181c8815bed2454e16093a6128e89.zip |
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 <bhumirks@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/dwc')
-rw-r--r-- | drivers/pci/dwc/pcie-kirin.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |