remoteproc: stm32: Constify st_rproc_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sat, 7 Nov 2020 23:36:30 +0000 (00:36 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 18 Nov 2020 03:47:03 +0000 (21:47 -0600)
commit0eee3d28ff6572f0e1afd41e863e44d396a308e2
treecc4c0423f09baa4953500bc5c4129a235a9b939f
parentbb7eda7eddf1f8002e00a5147aff91fad8caf2d5
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: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20201107233630.9728-3-rikard.falkeborn@gmail.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/stm32_rproc.c