summaryrefslogtreecommitdiff
path: root/drivers/remoteproc/remoteproc_internal.h
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2018-01-06 03:04:18 +0300
committerBjorn Andersson <bjorn.andersson@linaro.org>2018-02-12 22:05:30 +0300
commitc1d35c1ab4242464a0e5953ae69de8aa78156c6c (patch)
tree911fb91cf15f8b9184d0edd6cc81866f6d79cec9 /drivers/remoteproc/remoteproc_internal.h
parent2666ca9197e3d352f43b02d7dfb7c6dd72e7c614 (diff)
downloadlinux-c1d35c1ab4242464a0e5953ae69de8aa78156c6c.tar.xz
remoteproc: Rename "load_rsc_table" to "parse_fw"
The resource table is just one possible source of information that can be extracted from the firmware file. Generalize this interface to allow drivers to override this with parsers of other types of information. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/remoteproc/remoteproc_internal.h')
-rw-r--r--drivers/remoteproc/remoteproc_internal.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/remoteproc/remoteproc_internal.h b/drivers/remoteproc/remoteproc_internal.h
index 55a2950c5cb7..7570beb035b5 100644
--- a/drivers/remoteproc/remoteproc_internal.h
+++ b/drivers/remoteproc/remoteproc_internal.h
@@ -88,11 +88,10 @@ int rproc_load_segments(struct rproc *rproc, const struct firmware *fw)
return -EINVAL;
}
-static inline int rproc_load_rsc_table(struct rproc *rproc,
- const struct firmware *fw)
+static inline int rproc_parse_fw(struct rproc *rproc, const struct firmware *fw)
{
- if (rproc->ops->load_rsc_table)
- return rproc->ops->load_rsc_table(rproc, fw);
+ if (rproc->ops->parse_fw)
+ return rproc->ops->parse_fw(rproc, fw);
return 0;
}