OSDN Git Service

remoteproc: Allow overriding only sanity_check
authorClement Leger <cleger@kalray.eu>
Mon, 2 Mar 2020 09:39:01 +0000 (10:39 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 26 Mar 2020 05:29:41 +0000 (22:29 -0700)
commit12677467d6d5897391ef635db97787aef2f574eb
tree23cb2ca7fce452c6161b5a4b5ddc5411c2ecc2e9
parentf31e339f1b9b765c8c727d635c1b74424c102c1e
remoteproc: Allow overriding only sanity_check

Now that rproc_elf_sanity_check can be used by external drivers, allow
to only overwrite the sanity_check member of rproc_ops. This will allow
drivers to handle elf32 and elf64 by overwriting sanity_check with
rproc_elf_sanity_check function.

Signed-off-by: Clement Leger <cleger@kalray.eu>
Link: https://lore.kernel.org/r/20200302093902.27849-8-cleger@kalray.eu
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c