Commit f3ecdd7b authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

regulator: max77693: Fix trivial typo

Fix trivial typo in the equation to check upper bound of current setting.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarJonghwa Lee <jonghwa3.lee@samsung.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 80b022e2
......@@ -97,7 +97,7 @@ static int max77693_chg_set_current_limit(struct regulator_dev *rdev,
while (chg_min_uA + CHGIN_ILIM_STEP_20mA * sel < min_uA)
sel++;
if (chg_min_uA * CHGIN_ILIM_STEP_20mA * sel > max_uA)
if (chg_min_uA + CHGIN_ILIM_STEP_20mA * sel > max_uA)
return -EINVAL;
/* the first four codes for charger current are all 60mA */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment