提交 5a475168 编写于 作者: B Bhumika Goyal 提交者: Bjorn Helgaas

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: NBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
上级 b379d385
...@@ -223,7 +223,7 @@ static int hisi_pcie_link_up(struct dw_pcie *pci) ...@@ -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); 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, .rd_own_conf = hisi_pcie_cfg_read,
.wr_own_conf = hisi_pcie_cfg_write, .wr_own_conf = hisi_pcie_cfg_write,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册