Commit b45c1385 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Laurent Pinchart

drm: rcar-du: Use 1000 to avoid misunderstanding in rcar_du_dpll_divider()

It is difficult to understand its scale if number has many 0s.
This patch uses "* 1000" to avoid it in rcar_du_dpll_divider().
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
parent 94255fd3
......@@ -132,7 +132,7 @@ static void rcar_du_dpll_divider(struct rcar_du_crtc *rcrtc,
output = input * (n + 1) / (m + 1)
/ (fdpll + 1);
if (output >= 400000000)
if (output >= 400 * 1000 * 1000)
continue;
diff = abs((long)output - (long)target);
......
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