video: rockchip: dw_mipi_dsi: Fix best_rate calculation
authorOndrej Jirman <megi@xff.cz>
Mon, 22 May 2023 21:47:06 +0000 (23:47 +0200)
committerAnatolij Gustschin <agust@denx.de>
Fri, 14 Jul 2023 16:27:43 +0000 (18:27 +0200)
commitdc3f2403c2ae65dea795855d97ce2bb1c2be2d35
tree2a0b1031465a646ab7749ea667705ec612ec86f6
parent4158d7f9879fce29ec46a565382135083b030ed8
video: rockchip: dw_mipi_dsi: Fix best_rate calculation

pllref_clk is unused after being retrieved. fin needs to be set
to dsi->ref clock's rate for the following calculation to work.
Otherwise fin is undefined, and calculation return bogus number
based on undefined variable.

Signed-off-by: Ondrej Jirman <megi@xff.cz>
drivers/video/rockchip/dw_mipi_dsi_rockchip.c