rpmsg: glink: Associate indirections for pipe fifo accessor's
authorBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 24 Aug 2017 07:21:24 +0000 (12:51 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 29 Aug 2017 21:29:32 +0000 (14:29 -0700)
commite45c5dc26dfd2d524f6a82f8ab0f3cda90d67aa6
tree6591541d8ad2f8e97e1cd78a65a47e7757a311c7
parentd7101feb696f482dbe25af36bd4f40286de0a7aa
rpmsg: glink: Associate indirections for pipe fifo accessor's

With the intention of reusing the glink core protocol commands and code
across both rpm and smem based transports, the only thing different is
way of accessing the shared-memory of the transport (FIFO). So put the
fifo accessor's of the transport's pipe (rx/tx) behind indirections, so
that the rest of the code can be shared.

For this, have a qcom_glink_pipe that can be used in the common code
containing the indirections and wrap it with glink_rpm_pipe that
contains the transport specific members.

Acked-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
Signed-off-by: Sricharan R <sricharan@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/rpmsg/qcom_glink_rpm.c