Commit 58faae28 authored by Jonathan Liu's avatar Jonathan Liu Committed by Maxime Ripard

drm/sun4i: hdmi: Fix incorrect assignment in sun4i_tmds_determine_rate

best_div is set to i which corresponds to rate halving when it should be
set to j which corresponds to the divider.

Fixes: 9c568101 ("drm/sun4i: Add HDMI support")
Signed-off-by: default avatarJonathan Liu <net147@gmail.com>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180109020323.11852-3-net147@gmail.com
parent 111f4c33
......@@ -105,7 +105,7 @@ static int sun4i_tmds_determine_rate(struct clk_hw *hw,
if (!best_parent || abs(rate - rounded / i) <
abs(rate - best_parent / best_div)) {
best_parent = rounded;
best_div = i;
best_div = j;
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment