chelsio: constify cmac_ops structures

The cmac_ops structures are never modified, so declare them as const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Julia Lawall 2015-12-08 21:42:09 +01:00 committed by David S. Miller
parent 5abe255877
commit 264a4aca53
2 changed files with 2 additions and 2 deletions

View File

@ -570,7 +570,7 @@ static void pm3393_destroy(struct cmac *cmac)
kfree(cmac);
}
static struct cmac_ops pm3393_ops = {
static const struct cmac_ops pm3393_ops = {
.destroy = pm3393_destroy,
.reset = pm3393_reset,
.interrupt_enable = pm3393_interrupt_enable,

View File

@ -666,7 +666,7 @@ static void mac_destroy(struct cmac *mac)
kfree(mac);
}
static struct cmac_ops vsc7326_ops = {
static const struct cmac_ops vsc7326_ops = {
.destroy = mac_destroy,
.reset = mac_reset,
.interrupt_handler = mac_intr_handler,