mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-06 03:36:39 +07:00
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>
This commit is contained in:
parent
16f73eb02d
commit
db2af31521
@ -441,7 +441,7 @@ static struct dw_pcie_ops kirin_dw_pcie_ops = {
|
|||||||
.link_up = kirin_pcie_link_up,
|
.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,
|
.rd_own_conf = kirin_pcie_rd_own_conf,
|
||||||
.wr_own_conf = kirin_pcie_wr_own_conf,
|
.wr_own_conf = kirin_pcie_wr_own_conf,
|
||||||
.host_init = kirin_pcie_host_init,
|
.host_init = kirin_pcie_host_init,
|
||||||
|
Loading…
Reference in New Issue
Block a user