mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
This commit is contained in:
parent
94255fd39a
commit
b45c138502
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue