Skip to content

Commit

Permalink
drm: rcar-du: Use 1000 to avoid misunderstanding in rcar_du_dpll_divi…
Browse files Browse the repository at this point in the history
…der()

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>
  • Loading branch information
Kuninori Morimoto authored and Laurent Pinchart committed Feb 14, 2018
1 parent 94255fd commit b45c138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/rcar-du/rcar_du_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b45c138

Please sign in to comment.