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:

committad av
David S. Miller

förälder
d78d6776bc
incheckning
46c4b7a569
@@ -154,7 +154,7 @@ static unsigned char ns_phy_get(struct atm_dev *dev, unsigned long addr);
|
||||
|
||||
static struct ns_dev *cards[NS_MAX_CARDS];
|
||||
static unsigned num_cards;
|
||||
static struct atmdev_ops atm_ops = {
|
||||
static const struct atmdev_ops atm_ops = {
|
||||
.open = ns_open,
|
||||
.close = ns_close,
|
||||
.ioctl = ns_ioctl,
|
||||
|
Referens i nytt ärende
Block a user