diff options
author | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2023-06-04 06:13:08 +0300 |
---|---|---|
committer | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2023-06-08 02:08:23 +0300 |
commit | 0f86d9c980a3e4cc8b8ca604cfb5ac3537c3fba7 (patch) | |
tree | dfe5f59be710fe30ae77be88ceae354faee6bf2f /drivers/gpu/drm/msm/disp/dpu1/dpu_hw_wb.h | |
parent | a03b7c4698d78b2e4d0c06a439d01cce8a3823bc (diff) | |
download | linux-stable-0f86d9c980a3e4cc8b8ca604cfb5ac3537c3fba7.tar.gz linux-stable-0f86d9c980a3e4cc8b8ca604cfb5ac3537c3fba7.tar.bz2 linux-stable-0f86d9c980a3e4cc8b8ca604cfb5ac3537c3fba7.zip |
drm/msm/dpu: use PINGPONG_NONE to unbind WB from PP
Currently the driver passes the PINGPONG index to
dpu_hw_wb_ops::bind_pingpong_blk() callback and uses separate boolean
flag to tell whether WB should be bound or unbound. Simplify this by
passing PINGPONG_NONE in case of unbinding and drop the flag completely.
Suggested-by: Marijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Patchwork: https://patchwork.freedesktop.org/patch/540969/
Link: https://lore.kernel.org/r/20230604031308.894274-2-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Diffstat (limited to 'drivers/gpu/drm/msm/disp/dpu1/dpu_hw_wb.h')
-rw-r--r-- | drivers/gpu/drm/msm/disp/dpu1/dpu_hw_wb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_wb.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_wb.h index c7f792eeb55c..2d7db2efa3d0 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_wb.h +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_wb.h @@ -49,7 +49,7 @@ struct dpu_hw_wb_ops { bool enable); void (*bind_pingpong_blk)(struct dpu_hw_wb *ctx, - bool enable, const enum dpu_pingpong pp); + const enum dpu_pingpong pp); }; /** |