diff options
| author | Subbaraman Narayanamurthy <subbaram@codeaurora.org> | 2018-04-16 14:00:12 -0700 |
|---|---|---|
| committer | Subbaraman Narayanamurthy <subbaram@codeaurora.org> | 2018-04-26 13:07:08 -0700 |
| commit | a228cb4e8b8a20b15069f41be84e60cc5a6d06c9 (patch) | |
| tree | d5d7dc88c7217912e57e0c4d33125d830f65f355 /tools/perf/tests/code-reading.c | |
| parent | 502257f3e6a9fbc83bdf42d98aef495c8dcecf11 (diff) | |
leds: qpnp-flash-v2: Modify current code calculation
Currently, the code calculated for a desired target current and
IRES is rounded up since DIV_ROUND_UP is used in the calculation.
With a higher IRES (12.5 mA), code can be configured to a higher
value. Fix this by using DIV_ROUND_CLOSEST so that the optimal
code can be obtained.
Change-Id: I51c1b15fff3ff2a23cb256f2ae1d341f5271adf2
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Diffstat (limited to 'tools/perf/tests/code-reading.c')
0 files changed, 0 insertions, 0 deletions
