Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mailbox: constify mbox_chan_ops structure

This mbox_chan_ops structure is never modified, so declare it as const,
like all the other mbox_chan_ops structures.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>

authored by

Julia Lawall and committed by
Jassi Brar
bfbcfa77 31ade3b8

+1 -1
+1 -1
drivers/mailbox/mailbox-sti.c
··· 384 384 return chan; 385 385 } 386 386 387 - static struct mbox_chan_ops sti_mbox_ops = { 387 + static const struct mbox_chan_ops sti_mbox_ops = { 388 388 .startup = sti_mbox_startup_chan, 389 389 .shutdown = sti_mbox_shutdown_chan, 390 390 .send_data = sti_mbox_send_data,