summaryrefslogtreecommitdiffstats
path: root/drivers/atm/solos-pci.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-09 11:19:15 +0200
committerDavid S. Miller <davem@davemloft.net>2017-08-10 07:43:50 +0200
commit46c4b7a5694ccfdc2659fc8beb8736d7fb1c9841 (patch)
treef866f5cdee6e320ab8d9f63c986b1191ad8030a7 /drivers/atm/solos-pci.c
parentnet: dsa: make dsa_switch_ops const (diff)
downloadlinux-46c4b7a5694ccfdc2659fc8beb8736d7fb1c9841.tar.xz
linux-46c4b7a5694ccfdc2659fc8beb8736d7fb1c9841.zip
atm: make atmdev_ops const
Make these structures const as they are either passed to the function atm_dev_register having the corresponding argument as const or stored in the ops field of a atm_dev structure, which is also const. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/atm/solos-pci.c')
-rw-r--r--drivers/atm/solos-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c
index 8754793223cd..0df1a1c80b00 100644
--- a/drivers/atm/solos-pci.c
+++ b/drivers/atm/solos-pci.c
@@ -1187,7 +1187,7 @@ static int psend(struct atm_vcc *vcc, struct sk_buff *skb)
return 0;
}
-static struct atmdev_ops fpga_ops = {
+static const struct atmdev_ops fpga_ops = {
.open = popen,
.close = pclose,
.ioctl = NULL,