mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-09 07:23:14 +00:00
remoteproc: ingenic: Constify ingenic_rproc_ops
The only usage of ingenic_rproc_ops is to pass its address to devm_rproc_alloc(), which accepts a const pointer. Make it const to allow the compiler to put it in read-only memory. Acked-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Link: https://lore.kernel.org/r/20201107233630.9728-2-rikard.falkeborn@gmail.com Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
parent
2316822989
commit
bb7eda7edd
@ -135,7 +135,7 @@ static void *ingenic_rproc_da_to_va(struct rproc *rproc, u64 da, size_t len)
|
||||
return (__force void *)va;
|
||||
}
|
||||
|
||||
static struct rproc_ops ingenic_rproc_ops = {
|
||||
static const struct rproc_ops ingenic_rproc_ops = {
|
||||
.prepare = ingenic_rproc_prepare,
|
||||
.unprepare = ingenic_rproc_unprepare,
|
||||
.start = ingenic_rproc_start,
|
||||
|
Loading…
Reference in New Issue
Block a user