Commit 4a0a700e authored by Willie Ruan's avatar Willie Ruan
Browse files

mfd: pm8xxx-pwm: simplify period search algorithm



Compare each search result (cur_err) directly with the best
result (best_err) without using local result in the loop for m.
This simplifies the code and makes it cleaner.

Change-Id: Icb6d19e1a14662b00bf7172ca6a7413fbe969cbc
Signed-off-by: default avatarWillie Ruan <wruan@codeaurora.org>
parent db78e944
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment