remoteproc: Make client initialize ops in rproc_subdev
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 26 Jun 2018 12:11:57 +0000 (07:11 -0500)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 26 Jun 2018 20:53:07 +0000 (13:53 -0700)
commit4902676f04acc20fe12e49f5f4916f2659c2a7bc
treefadf7b89ad14b1ed27b91662b5ca724baccae6f5
parentbe37b1e0fb100a369cfb7ebf016491dfb6c71987
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>
drivers/remoteproc/qcom_common.c
drivers/remoteproc/qcom_sysmon.c
drivers/remoteproc/remoteproc_core.c
include/linux/remoteproc.h