projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5d5827
)
mailbox: hi3660: constify mbox_chan_ops structure
author
Julia Lawall
<Julia.Lawall@lip6.fr>
Fri, 2 Nov 2018 15:11:55 +0000
(16:11 +0100)
committer
Jassi Brar
<jaswinder.singh@linaro.org>
Wed, 12 Dec 2018 02:29:40 +0000
(07:59 +0530)
The mbox_chan_ops structure can be const as it is only stored in the
ops field of an mbox_controller structure and this field is const.
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/hi3660-mailbox.c
patch
|
blob
|
history
diff --git
a/drivers/mailbox/hi3660-mailbox.c
b/drivers/mailbox/hi3660-mailbox.c
index
3eea6b6
..
c3fd1f2
100644
(file)
--- a/
drivers/mailbox/hi3660-mailbox.c
+++ b/
drivers/mailbox/hi3660-mailbox.c
@@
-206,7
+206,7
@@
static int hi3660_mbox_send_data(struct mbox_chan *chan, void *msg)
return 0;
}
-static struct mbox_chan_ops hi3660_mbox_ops = {
+static
const
struct mbox_chan_ops hi3660_mbox_ops = {
.startup = hi3660_mbox_startup,
.send_data = hi3660_mbox_send_data,
};