Re: [Linux-stm32] [PATCH 2/2] remoteproc: stm32: Constify st_rproc_ops

2020-11-09 Thread Arnaud POULIQUEN
Hi Rikard, On 11/8/20 12:36 AM, Rikard Falkeborn wrote: > 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. > > Signed-off-by: Rikard Falkeborn > --- >

[PATCH 2/2] remoteproc: stm32: Constify st_rproc_ops

2020-11-07 Thread Rikard Falkeborn
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. Signed-off-by: Rikard Falkeborn --- drivers/remoteproc/stm32_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)