summaryrefslogtreecommitdiffstats
path: root/drivers/atm/adummy.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-09 05:19:15 -0400
committerDavid S. Miller <davem@davemloft.net>2017-08-10 01:43:50 -0400
commit46c4b7a5694ccfdc2659fc8beb8736d7fb1c9841 (patch)
treef866f5cdee6e320ab8d9f63c986b1191ad8030a7 /drivers/atm/adummy.c
parentd78d6776bc958b16b9a8883278f36d62e3145409 (diff)
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/adummy.c')
-rw-r--r--drivers/atm/adummy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/atm/adummy.c b/drivers/atm/adummy.c
index da27ddfa75a7..8d98130ecd40 100644
--- a/drivers/atm/adummy.c
+++ b/drivers/atm/adummy.c
@@ -130,7 +130,7 @@ adummy_proc_read(struct atm_dev *dev, loff_t *pos, char *page)
130 return 0; 130 return 0;
131} 131}
132 132
133static struct atmdev_ops adummy_ops = 133static const struct atmdev_ops adummy_ops =
134{ 134{
135 .open = adummy_open, 135 .open = adummy_open,
136 .close = adummy_close, 136 .close = adummy_close,