mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
remoteproc: Make client initialize ops in rproc_subdev
In preparation of adding the additional prepare and unprepare operations make the client responsible for filling out the function pointers of the rproc_subdev. This makes the arguments to rproc_add_subdev() more manageable, in particular when some of the functions are left out. Tested-by: Fabien Dessenne <fabien.dessenne@st.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> [elder@linaro.org: added comment about assigning function pointers] Signed-off-by Alex Elder <elder@linaro.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
parent
be37b1e0fb
commit
4902676f04
4 changed files with 22 additions and 24 deletions
|
@ -566,10 +566,7 @@ static inline struct rproc *vdev_to_rproc(struct virtio_device *vdev)
|
|||
return rvdev->rproc;
|
||||
}
|
||||
|
||||
void rproc_add_subdev(struct rproc *rproc,
|
||||
struct rproc_subdev *subdev,
|
||||
int (*start)(struct rproc_subdev *subdev),
|
||||
void (*stop)(struct rproc_subdev *subdev, bool crashed));
|
||||
void rproc_add_subdev(struct rproc *rproc, struct rproc_subdev *subdev);
|
||||
|
||||
void rproc_remove_subdev(struct rproc *rproc, struct rproc_subdev *subdev);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue