]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
remoteproc: move rproc_da_to_va declaration to remoteproc.h
authorSuman Anna <s-anna@ti.com>
Tue, 8 Mar 2022 17:25:15 +0000 (18:25 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 11 Mar 2022 18:08:09 +0000 (12:08 -0600)
The rproc_da_to_va() API is an exported function, so move its
declaration from the remoteproc local remoteproc_internal.h
to the public remoteproc.h file.

This will allow drivers outside of the remoteproc folder to be
able to use this API.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
[adjusted line numbers to apply]
Signed-off-by: Drew Fustini <dfustini@baylibre.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220308172515.29556-1-dfustini@baylibre.com
drivers/remoteproc/remoteproc_internal.h
include/linux/remoteproc.h

index a328e634b1de48efa7bfff4d2e2e271ada3cdb25..72d4d3d7d94d173edd0ee4beb17611ad76bb0bb2 100644 (file)
@@ -84,7 +84,6 @@ static inline void  rproc_char_device_remove(struct rproc *rproc)
 void rproc_free_vring(struct rproc_vring *rvring);
 int rproc_alloc_vring(struct rproc_vdev *rvdev, int i);
 
-void *rproc_da_to_va(struct rproc *rproc, u64 da, size_t len, bool *is_iomem);
 phys_addr_t rproc_va_to_pa(void *cpu_addr);
 int rproc_trigger_recovery(struct rproc *rproc);
 
index 93a1d0050fbc046edf79796fdd5c99d1703d0be6..b2ee325e0af191ead808b468d3352e8913664b9b 100644 (file)
@@ -675,6 +675,7 @@ void rproc_shutdown(struct rproc *rproc);
 int rproc_detach(struct rproc *rproc);
 int rproc_set_firmware(struct rproc *rproc, const char *fw_name);
 void rproc_report_crash(struct rproc *rproc, enum rproc_crash_type type);
+void *rproc_da_to_va(struct rproc *rproc, u64 da, size_t len, bool *is_iomem);
 void rproc_coredump_using_sections(struct rproc *rproc);
 int rproc_coredump_add_segment(struct rproc *rproc, dma_addr_t da, size_t size);
 int rproc_coredump_add_custom_segment(struct rproc *rproc,