commit | 4a0a700e518df96651b2a131a955d61109af4de7 | [log] [tgz] |
---|---|---|
author | Willie Ruan <wruan@codeaurora.org> | Tue Jan 10 15:39:44 2012 -0800 |
committer | Willie Ruan <wruan@codeaurora.org> | Thu Jan 12 15:40:18 2012 -0800 |
tree | 3d51d6fb98228aeab0af972ddec20a2ce4d244f5 | |
parent | db78e94440aad7152c6f01ee1c0b4dc174057de6 [diff] |
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: Willie Ruan <wruan@codeaurora.org>