Skip to content

Commit

Permalink
mailbox: constify mbox_chan_ops structure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Julia Lawall authored and Jassi Brar committed Nov 30, 2015
1 parent 31ade3b commit bfbcfa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mailbox/mailbox-sti.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ static struct mbox_chan *sti_mbox_xlate(struct mbox_controller *mbox,
return chan;
}

static struct mbox_chan_ops sti_mbox_ops = {
static const struct mbox_chan_ops sti_mbox_ops = {
.startup = sti_mbox_startup_chan,
.shutdown = sti_mbox_shutdown_chan,
.send_data = sti_mbox_send_data,
Expand Down

0 comments on commit bfbcfa7

Please sign in to comment.