1
0
Fork 0

mailbox: hi3660: constify mbox_chan_ops structure

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>
hifive-unleashed-5.1
Julia Lawall 2018-11-02 16:11:55 +01:00 committed by Jassi Brar
parent f5d582777b
commit b5452838c6
1 changed files with 1 additions and 1 deletions

View File

@ -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,
};