remoteproc: Introduce rproc_of_parse_firmware() helper
authorSuman Anna <s-anna@ti.com>
Tue, 21 Jul 2020 22:36:13 +0000 (17:36 -0500)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 29 Jul 2020 00:06:42 +0000 (17:06 -0700)
commita8aa5ee100df45f4988975822f5af7c2b67ee9e6
tree96dd1ea0dc127246a6cf1c9d332fc3f7295959a5
parent44aa656f22d287b33f33bdb28dfb900846e1fc60
remoteproc: Introduce rproc_of_parse_firmware() helper

Add a new helper function rproc_of_parse_firmware() to the remoteproc
core that can be used by various remoteproc drivers to look up the
the "firmware-name" property from a rproc device node. This property
is already being used by multiple drivers, so this helper can avoid
repeating equivalent code in remoteproc drivers.

Signed-off-by: Suman Anna <s-anna@ti.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200721223617.20312-3-s-anna@ti.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c
drivers/remoteproc/remoteproc_internal.h