drm/bridge/synopsys: dsi: Fix dsi_host_transfer() return value
authorPhilippe Cornu <philippe.cornu@st.com>
Thu, 25 Jan 2018 10:38:00 +0000 (11:38 +0100)
committerArchit Taneja <architt@codeaurora.org>
Tue, 30 Jan 2018 10:49:17 +0000 (16:19 +0530)
commit1a1c130cca78c77209cd795282d93297640fb63e
tree6aafa9a7c8933dcde96ad80d5d4d48a70ae95b9c
parent4cda6e8e1ea0e7bc80028fa4fe196357a2799d05
drm/bridge/synopsys: dsi: Fix dsi_host_transfer() return value

The dw_mipi_dsi_host_transfer() must return the number of
bytes transmitted/received on success instead of 0.
Note: As the read feature is not implemented, only the
transmitted number of bytes is returned for the moment.

Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Philippe Cornu <philippe.cornu@st.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180125103800.1999-3-philippe.cornu@st.com
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c