]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/msm/dsi: add a helper method to compute the dsi byte clk
authorAbhinav Kumar <quic_abhinavk@quicinc.com>
Thu, 12 Jan 2023 00:15:59 +0000 (16:15 -0800)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 22 Jan 2023 20:42:57 +0000 (22:42 +0200)
commit03f7b78242e5fac9fefea9a7bd5484510d5916bb
tree575c7487678e16ba649d6d321d1d0fac2c7e6c67
parentd61980addc9c5237e3ce96d3a4858131e54f3fe4
drm/msm/dsi: add a helper method to compute the dsi byte clk

Re-arrange the dsi_calc_pclk method to two helpers, one to
compute the DSI byte clk and the other to compute the pclk.

This makes the separation of the two clean and also allows
clients to compute and use the dsi byte clk separately.

changes in v2:
- move the assignments to definition lines

Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/518005/
Link: https://lore.kernel.org/r/20230112001600.12791-1-quic_abhinavk@quicinc.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/dsi/dsi.h
drivers/gpu/drm/msm/dsi/dsi_host.c