diff options
author | Philippe Cornu <philippe.cornu@st.com> | 2018-01-12 17:48:47 +0300 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2018-01-17 01:10:14 +0300 |
commit | 6ac69290289821b80c2fcf9e3f2c137346c4239f (patch) | |
tree | c7d096ee40a05879a7e72308270570ca2523b54f /crypto/842.c | |
parent | fd2cb71bbc383edbfe73ce3770569c7259cfb939 (diff) | |
download | linux-6ac69290289821b80c2fcf9e3f2c137346c4239f.tar.xz |
drm/dsi: Fix improper use of mipi_dsi_device_transfer() return value
The function mipi_dsi_device_transfer() returns the number of transmitted
or received bytes on success or a negative error code on failure.
The functions mipi_dsi_shutdown_peripheral(), mipi_dsi_turn_on_peripheral() &
mipi_dsi_set_maximum_return_packet_size() use improperly this returned
value in case of success: 0 should be returned instead of the number of
transmitted bytes.
Signed-off-by: Philippe Cornu <philippe.cornu@st.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180112144847.18810-1-philippe.cornu@st.com
Diffstat (limited to 'crypto/842.c')
0 files changed, 0 insertions, 0 deletions