soc: qcom: rmtfs: Add support for mmap functionality
authorAnkit Jain <jankit@codeaurora.org>
Mon, 4 Feb 2019 04:45:43 +0000 (10:15 +0530)
committerAndy Gross <andy.gross@linaro.org>
Thu, 28 Mar 2019 04:32:25 +0000 (23:32 -0500)
commit8da3daaa097171edd9658a82bbd3f335bc2e03ad
tree2232ab6985a2c2ea1a52671772ae7dca4fd5f792
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b
soc: qcom: rmtfs: Add support for mmap functionality

This change adds mmap functionality to rmtfs_mem driver.
Userspace application can map the address and use this
mapped address directly as buffer for read/write call to disk.
and avoid the read/write call to the shared path to copy the
buffer to userspace application.

Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Ankit Jain <jankit@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/rmtfs_mem.c