Re: [PATCH] clk: sunxi-ng: mp: Avoid computing the rate twice

From: Jernej Škrabec
Date: Sun Aug 14 2022 - 06:07:48 EST


Dne sreda, 10. avgust 2022 ob 03:40:24 CEST je Samuel Holland napisal(a):
> ccu_mp_find_best() already computes a best_rate at the same time as the
> best m and p factors. Return it so the caller does not need to duplicate
> the division.
>
> Signed-off-by: Samuel Holland <samuel@xxxxxxxxxxxx>

Reviewed-by: Jernej Skrabec <jernej.skrabec@xxxxxxxxx>

Other ccu_*_find_best() functions would also benefit with similar change.

Best regards,
Jernej