Commit f3ecdd7bf6a782a6eafe9c2c5d39fcb487e2a154
Committed by
Mark Brown
1 parent
80b022e29b
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
regulator: max77693: Fix trivial typo
Fix trivial typo in the equation to check upper bound of current setting. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Jonghwa Lee <jonghwa3.lee@samsung.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/regulator/max77693.c
... | ... | @@ -97,7 +97,7 @@ |
97 | 97 | while (chg_min_uA + CHGIN_ILIM_STEP_20mA * sel < min_uA) |
98 | 98 | sel++; |
99 | 99 | |
100 | - if (chg_min_uA * CHGIN_ILIM_STEP_20mA * sel > max_uA) | |
100 | + if (chg_min_uA + CHGIN_ILIM_STEP_20mA * sel > max_uA) | |
101 | 101 | return -EINVAL; |
102 | 102 | |
103 | 103 | /* the first four codes for charger current are all 60mA */ |