]> git.hungrycats.org Git - linux/commit
drm/mipi-dsi: use correct return type for the DSC functions
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 7 Apr 2024 23:53:51 +0000 (02:53 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:49:41 +0000 (09:49 +0200)
commitb8e506a251a66c3bc54dfe1bf6384aa0856c1512
tree93da7df5ed22e2f2d343b8ef2de4133f6ad72ba8
parentd7733cad71d03e7c23ea6dab6d484cc8d1f58996
drm/mipi-dsi: use correct return type for the DSC functions

[ Upstream commit de1c705c50326acaceaf1f02bc5bf6f267c572bd ]

The functions mipi_dsi_compression_mode() and
mipi_dsi_picture_parameter_set() return 0-or-error rather than a buffer
size. Follow example of other similar MIPI DSI functions and use int
return type instead of size_t.

Fixes: f4dea1aaa9a1 ("drm/dsi: add helpers for DSI compression mode and PPS packets")
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: Jessica Zhang <quic_jesszhan@quicinc.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240408-lg-sw43408-panel-v5-2-4e092da22991@linaro.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/drm_mipi_dsi.c
include/drm/drm_mipi_dsi.h