projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31ade3b
)
mailbox: constify mbox_chan_ops structure
author
Julia Lawall
<Julia.Lawall@lip6.fr>
Sun, 29 Nov 2015 12:50:02 +0000
(13:50 +0100)
committer
Jassi Brar
<jaswinder.singh@linaro.org>
Mon, 30 Nov 2015 15:42:05 +0000
(21:12 +0530)
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>
drivers/mailbox/mailbox-sti.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mailbox/mailbox-sti.c
b/drivers/mailbox/mailbox-sti.c
index 4835817c53651dbfeeab4c4d7e6c86bf5f06aa58..2394cfe892b684c4f7d002f9c488a02f85daa54e 100644
(file)
--- a/
drivers/mailbox/mailbox-sti.c
+++ b/
drivers/mailbox/mailbox-sti.c
@@
-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,