Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 264a4aca authored by Julia Lawall's avatar Julia Lawall Committed by David S. Miller
Browse files

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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5abe2558
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
+1 −1
Original line number Diff line number Diff line
@@ -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,