]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dpu: simplify and unify dpu_encoder_get_intf and dpu_encoder_get_wb
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sat, 25 Jun 2022 00:30:28 +0000 (03:30 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 4 Jul 2022 18:05:28 +0000 (21:05 +0300)
commit84bc6ac09aef683910f730de4a5ae9881630bc88
treeba8f45e73c587b6a94ec2bcc2706cf8a56fdfedb
parent38d260ce1decb453459bd44b48407eb4ebdf3b27
drm/msm/dpu: simplify and unify dpu_encoder_get_intf and dpu_encoder_get_wb

Remove extra nestting level from the dpu_encoder_get_intf(), replacing it
with the explicit return in case the INTF_WB was passed to the function.

While we are at it, also change dpu_encoder_get_wb() to also use
explicit return rather than the goto.

Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/491189/
Link: https://lore.kernel.org/r/20220625003028.383259-1-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c