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>
This commit is contained in:
Bhumika Goyal
2017-08-09 14:49:15 +05:30
committed by David S. Miller
parent d78d6776bc
commit 46c4b7a569
6 changed files with 6 additions and 6 deletions

View File

@@ -130,7 +130,7 @@ adummy_proc_read(struct atm_dev *dev, loff_t *pos, char *page)
return 0;
}
static struct atmdev_ops adummy_ops =
static const struct atmdev_ops adummy_ops =
{
.open = adummy_open,
.close = adummy_close,