remoteproc: Refactor function rproc_cdev_release()
authorMathieu Poirier <mathieu.poirier@linaro.org>
Fri, 12 Mar 2021 16:24:53 +0000 (09:24 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 18 Mar 2021 13:02:10 +0000 (08:02 -0500)
commit6e71d2b2a2b717c3bddbe72cdf48dd07d53f8364
tree999d1f9f934118d6906ae3143671c2d61c103c47
parent5daaeb5f07ed0681b734864dde58dcadab115963
remoteproc: Refactor function rproc_cdev_release()

Refactor function rproc_cdev_release() to take into account the
current state of the remote processor when choosing the state to
transition to.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20210312162453.1234145-18-mathieu.poirier@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_cdev.c