mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04: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 <[email protected]> Signed-off-by: Rikard Falkeborn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
This commit is contained in:
1 parent
2316822989
commit
bb7eda7edd
1 file changed
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user