mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
remoteproc: Remove vdev_to_rvdev and vdev_to_rproc from remoteproc API
These both functions are only used by the remoteproc_virtio. There is no reason to expose them in the API. Move the functions in remoteproc_virtio.c Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20211001101234.4247-4-arnaud.pouliquen@foss.st.com
This commit is contained in:
committed by
Bjorn Andersson
parent
c34bfafd7c
commit
9955548919
@@ -23,6 +23,18 @@
|
|||||||
|
|
||||||
#include "remoteproc_internal.h"
|
#include "remoteproc_internal.h"
|
||||||
|
|
||||||
|
static struct rproc_vdev *vdev_to_rvdev(struct virtio_device *vdev)
|
||||||
|
{
|
||||||
|
return container_of(vdev->dev.parent, struct rproc_vdev, dev);
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct rproc *vdev_to_rproc(struct virtio_device *vdev)
|
||||||
|
{
|
||||||
|
struct rproc_vdev *rvdev = vdev_to_rvdev(vdev);
|
||||||
|
|
||||||
|
return rvdev->rproc;
|
||||||
|
}
|
||||||
|
|
||||||
/* kick the remote processor, and let it know which virtqueue to poke at */
|
/* kick the remote processor, and let it know which virtqueue to poke at */
|
||||||
static bool rproc_virtio_notify(struct virtqueue *vq)
|
static bool rproc_virtio_notify(struct virtqueue *vq)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -684,18 +684,6 @@ int rproc_coredump_add_custom_segment(struct rproc *rproc,
|
|||||||
void *priv);
|
void *priv);
|
||||||
int rproc_coredump_set_elf_info(struct rproc *rproc, u8 class, u16 machine);
|
int rproc_coredump_set_elf_info(struct rproc *rproc, u8 class, u16 machine);
|
||||||
|
|
||||||
static inline struct rproc_vdev *vdev_to_rvdev(struct virtio_device *vdev)
|
|
||||||
{
|
|
||||||
return container_of(vdev->dev.parent, struct rproc_vdev, dev);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline struct rproc *vdev_to_rproc(struct virtio_device *vdev)
|
|
||||||
{
|
|
||||||
struct rproc_vdev *rvdev = vdev_to_rvdev(vdev);
|
|
||||||
|
|
||||||
return rvdev->rproc;
|
|
||||||
}
|
|
||||||
|
|
||||||
void rproc_add_subdev(struct rproc *rproc, struct rproc_subdev *subdev);
|
void rproc_add_subdev(struct rproc *rproc, struct rproc_subdev *subdev);
|
||||||
|
|
||||||
void rproc_remove_subdev(struct rproc *rproc, struct rproc_subdev *subdev);
|
void rproc_remove_subdev(struct rproc *rproc, struct rproc_subdev *subdev);
|
||||||
|
|||||||
Reference in New Issue
Block a user