diff options
| author | Andrew Bresticker <abrestic@chromium.org> | 2015-05-04 13:36:35 -0400 |
|---|---|---|
| committer | Jassi Brar <jaswinder.singh@linaro.org> | 2015-05-11 23:48:16 -0400 |
| commit | 05ae797566a66d159cf1e2ee11bf3f6fae40c8eb (patch) | |
| tree | 409e6262f89399295e2e1e6d35345ac5fe8c170d /include/linux/mailbox_controller.h | |
| parent | 59dd3f02615e52c42207a8e873f7f86bf7d447c4 (diff) | |
mailbox: Make mbox_chan_ops const
The mailbox controller's channel ops ought to be read-only. Update
all the mailbox drivers to make their mbox_chan_ops const as well.
Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Cc: Ashwin Chaugule <ashwin.chaugule@linaro.org>
Cc: Ley Foon Tan <lftan@altera.com>
Acked-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'include/linux/mailbox_controller.h')
| -rw-r--r-- | include/linux/mailbox_controller.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mailbox_controller.h b/include/linux/mailbox_controller.h index d4cf96f07cfc..68c42454439b 100644 --- a/include/linux/mailbox_controller.h +++ b/include/linux/mailbox_controller.h | |||
| @@ -72,7 +72,7 @@ struct mbox_chan_ops { | |||
| 72 | */ | 72 | */ |
| 73 | struct mbox_controller { | 73 | struct mbox_controller { |
| 74 | struct device *dev; | 74 | struct device *dev; |
| 75 | struct mbox_chan_ops *ops; | 75 | const struct mbox_chan_ops *ops; |
| 76 | struct mbox_chan *chans; | 76 | struct mbox_chan *chans; |
| 77 | int num_chans; | 77 | int num_chans; |
| 78 | bool txdone_irq; | 78 | bool txdone_irq; |
