summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2017-11-14 12:11:26 -0600
committerBjorn Helgaas <bhelgaas@google.com>2017-11-14 12:11:26 -0600
commit9af21ac53f970b1be81c1e1ca629da74a771a036 (patch)
tree02b3142b7e7d1a40d4279543c471ef350a332f72 /drivers
parent104d1e40cfcd69934f3f57c6abf13980eb703feb (diff)
parentf05f7355de3e66438619c97c612d63cc8a1be125 (diff)
Merge branch 'pci/switchtec' into next
* pci/switchtec: switchtec: Make struct event_regs static
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/switch/switchtec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/switch/switchtec.c b/drivers/pci/switch/switchtec.c
index af81b2dec42e..da45dbea20ce 100644
--- a/drivers/pci/switch/switchtec.c
+++ b/drivers/pci/switch/switchtec.c
@@ -943,7 +943,7 @@ static u32 __iomem *pff_ev_reg(struct switchtec_dev *stdev,
#define EV_PAR(i, r)[i] = {offsetof(struct part_cfg_regs, r), part_ev_reg}
#define EV_PFF(i, r)[i] = {offsetof(struct pff_csr_regs, r), pff_ev_reg}
-const struct event_reg {
+static const struct event_reg {
size_t offset;
u32 __iomem *(*map_reg)(struct switchtec_dev *stdev,
size_t offset, int index);