drm/msm/dpu: use PINGPONG_NONE to unbind INTF from PP
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 4 Jun 2023 03:13:07 +0000 (06:13 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 7 Jun 2023 23:08:23 +0000 (02:08 +0300)
commita03b7c4698d78b2e4d0c06a439d01cce8a3823bc
treea697612d42a074262191f3fbc2dd7d9a91e0512c
parent5d1227d1c7a38adb26a0203ecaf5873b2bbbf7b6
drm/msm/dpu: use PINGPONG_NONE to unbind INTF from PP

Currently the driver passes the PINGPONG index to
dpu_hw_intf_ops::bind_pingpong_blk() callback and uses separate boolean
flag to tell whether INTF should be bound or unbound. Simplify this by
passing PINGPONG_NONE in case of unbinding and drop the flag completely.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Patchwork: https://patchwork.freedesktop.org/patch/540968/
Link: https://lore.kernel.org/r/20230604031308.894274-1-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.h