summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/disp
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>2023-05-20 23:01:03 +0300
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>2023-06-04 04:50:05 +0300
commit374918d2c396c7099c4bcd04ee044e8b0456afce (patch)
treeb7e630d781a336675c3b4e58e14c9b3d2ca8d3ba /drivers/gpu/drm/msm/disp
parent6de6c28d97c02b5abdb208975cf392942e462424 (diff)
downloadlinux-stable-374918d2c396c7099c4bcd04ee044e8b0456afce.tar.gz
linux-stable-374918d2c396c7099c4bcd04ee044e8b0456afce.tar.bz2
linux-stable-374918d2c396c7099c4bcd04ee044e8b0456afce.zip
drm/msm/dsi: use mult_frac for pclk_bpp calculation
Simplify calculations around pixel_clk_rate division. Replace common pattern of doing 64-bit multiplication and then a do_div() call with simpler mult_frac() invocation. Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/538273/ Link: https://lore.kernel.org/r/20230520200103.4019607-2-dmitry.baryshkov@linaro.org Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Diffstat (limited to 'drivers/gpu/drm/msm/disp')
0 files changed, 0 insertions, 0 deletions