]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/msm/dpu: use standard functions in _dpu_format_populate_plane_sizes_ubwc()
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Fri, 14 Nov 2025 03:43:39 +0000 (05:43 +0200)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Tue, 13 Jan 2026 06:20:15 +0000 (08:20 +0200)
commit2f3ff6ab8f5cd6359348999a34315eb3f6d52915
treecb09c19f13f5de4008736c1f16c9988127d3efa0
parentada4a19ed21c350fe39bbcdf92d16bf68e825dd4
drm/msm/dpu: use standard functions in _dpu_format_populate_plane_sizes_ubwc()

The _dpu_format_populate_plane_sizes_ubwc() used MSM_MEDIA_ALIGN() and
MSM_MEDIA_ROUNDUP(), macros inherited from the previous implementation,
msm_media_info.h. Replace them with the standard Linux macros,
round_up() and DIV_ROUND_UP() respectively.

Patchwork: https://patchwork.freedesktop.org/patch/688182/
Link: https://lore.kernel.org/r/20251114-dpu-formats-v3-12-cae312379d49@oss.qualcomm.com
Tested-by: Luca Weiss <luca.weiss@fairphone.com> # qcm6490-fairphone-fp5
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c