提交 0eee3d28 编写于 作者: R Rikard Falkeborn 提交者: Bjorn Andersson

remoteproc: stm32: Constify st_rproc_ops

The only usage of st_rproc_ops is to pass its address to rproc_alloc()
which accepts a const pointer. Make it const to allow the compiler to
put it in read-only memory.
Acked-by: NArnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: NRikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20201107233630.9728-3-rikard.falkeborn@gmail.comSigned-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
上级 bb7eda7e
...@@ -541,7 +541,7 @@ static void stm32_rproc_kick(struct rproc *rproc, int vqid) ...@@ -541,7 +541,7 @@ static void stm32_rproc_kick(struct rproc *rproc, int vqid)
} }
} }
static struct rproc_ops st_rproc_ops = { static const struct rproc_ops st_rproc_ops = {
.start = stm32_rproc_start, .start = stm32_rproc_start,
.stop = stm32_rproc_stop, .stop = stm32_rproc_stop,
.attach = stm32_rproc_attach, .attach = stm32_rproc_attach,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册