remoteproc: core: Introduce rproc_add_rvdev function
authorArnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Wed, 21 Sep 2022 13:50:42 +0000 (15:50 +0200)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 21 Sep 2022 17:14:17 +0000 (11:14 -0600)
commit63badba9457147b64dbd4680518a810456eeed0c
treefa0a6169bfc3ea70c00d49b5006505e79ed8da66
parentfd28f879e6274d477378362d848b42747ecb27eb
remoteproc: core: Introduce rproc_add_rvdev function

The rproc structure contains a list of registered rproc_vdev structure.
To be able to move the management of the rproc_vdev structure in
remoteproc_virtio.c (i.e rproc_rvdev_add_device function),
introduce the rproc_add_rvdev and rproc_remove_rvdev functions.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Link: https://lore.kernel.org/r/20220921135044.917140-3-arnaud.pouliquen@foss.st.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/remoteproc_core.c