rpmsg: glink: Consolidate TX_DATA and TX_DATA_CONT
authorBjorn Andersson <quic_bjorande@quicinc.com>
Tue, 18 Apr 2023 16:30:18 +0000 (09:30 -0700)
committerBjorn Andersson <andersson@kernel.org>
Wed, 19 Apr 2023 19:43:19 +0000 (12:43 -0700)
commitba7a4754da1092decbeea3b29bf7d5946f1be400
tree1edb4d7a8f125d1cafa21f41f13195a90f468dae
parent7a68f9fa97357a0f2073c9c31ed4101da4fce93e
rpmsg: glink: Consolidate TX_DATA and TX_DATA_CONT

Rather than duplicating most of the code for constructing the initial
TX_DATA and subsequent TX_DATA_CONT packets, roll them into a single
loop.

Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Reviewed-by: Chris Lew <quic_clew@quicinc.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230418163018.785524-3-quic_bjorande@quicinc.com
drivers/rpmsg/qcom_glink_native.c