From: Rikard Falkeborn Date: Sat, 7 Nov 2020 23:36:29 +0000 (+0100) Subject: remoteproc: ingenic: Constify ingenic_rproc_ops X-Git-Tag: v5.15~2201^2~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bb7eda7eddf1f8002e00a5147aff91fad8caf2d5;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Rikard Falkeborn Link: https://lore.kernel.org/r/20201107233630.9728-2-rikard.falkeborn@gmail.com Signed-off-by: Bjorn Andersson --- diff --git a/drivers/remoteproc/ingenic_rproc.c b/drivers/remoteproc/ingenic_rproc.c index 1c2b21a..26e19e6 100644 --- a/drivers/remoteproc/ingenic_rproc.c +++ b/drivers/remoteproc/ingenic_rproc.c @@ -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,