Commit 800bb47e authored by Bhumika Goyal's avatar Bhumika Goyal Committed by David S. Miller

net: atm: make atmdev_ops const

Make these const as they are only stored in the ops field of a atm_dev
structure, which is const.
Done using Coccinelle.
Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 46c4b7a5
...@@ -617,7 +617,7 @@ static void atmarpd_close(struct atm_vcc *vcc) ...@@ -617,7 +617,7 @@ static void atmarpd_close(struct atm_vcc *vcc)
module_put(THIS_MODULE); module_put(THIS_MODULE);
} }
static struct atmdev_ops atmarpd_dev_ops = { static const struct atmdev_ops atmarpd_dev_ops = {
.close = atmarpd_close .close = atmarpd_close
}; };
......
...@@ -486,7 +486,7 @@ static void lec_atm_close(struct atm_vcc *vcc) ...@@ -486,7 +486,7 @@ static void lec_atm_close(struct atm_vcc *vcc)
module_put(THIS_MODULE); module_put(THIS_MODULE);
} }
static struct atmdev_ops lecdev_ops = { static const struct atmdev_ops lecdev_ops = {
.close = lec_atm_close, .close = lec_atm_close,
.send = lec_atm_send .send = lec_atm_send
}; };
......
...@@ -779,7 +779,7 @@ static void mpc_push(struct atm_vcc *vcc, struct sk_buff *skb) ...@@ -779,7 +779,7 @@ static void mpc_push(struct atm_vcc *vcc, struct sk_buff *skb)
netif_rx(new_skb); netif_rx(new_skb);
} }
static struct atmdev_ops mpc_ops = { /* only send is required */ static const struct atmdev_ops mpc_ops = { /* only send is required */
.close = mpoad_close, .close = mpoad_close,
.send = msg_from_mpoad .send = msg_from_mpoad
}; };
......
...@@ -217,7 +217,7 @@ static void sigd_close(struct atm_vcc *vcc) ...@@ -217,7 +217,7 @@ static void sigd_close(struct atm_vcc *vcc)
read_unlock(&vcc_sklist_lock); read_unlock(&vcc_sklist_lock);
} }
static struct atmdev_ops sigd_dev_ops = { static const struct atmdev_ops sigd_dev_ops = {
.close = sigd_close, .close = sigd_close,
.send = sigd_send .send = sigd_send
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment