Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);