提交 b45c1385 编写于 作者: K Kuninori Morimoto 提交者: 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: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: NLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: NLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部