提交 bfbcfa77 编写于 作者: J Julia Lawall 提交者: Jassi Brar

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: NJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: NJassi Brar <jaswinder.singh@linaro.org>
上级 31ade3b8
...@@ -384,7 +384,7 @@ static struct mbox_chan *sti_mbox_xlate(struct mbox_controller *mbox, ...@@ -384,7 +384,7 @@ static struct mbox_chan *sti_mbox_xlate(struct mbox_controller *mbox,
return chan; return chan;
} }
static struct mbox_chan_ops sti_mbox_ops = { static const struct mbox_chan_ops sti_mbox_ops = {
.startup = sti_mbox_startup_chan, .startup = sti_mbox_startup_chan,
.shutdown = sti_mbox_shutdown_chan, .shutdown = sti_mbox_shutdown_chan,
.send_data = sti_mbox_send_data, .send_data = sti_mbox_send_data,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册