提交 f3ecdd7b 编写于 作者: A Axel Lin 提交者: Mark Brown

regulator: max77693: Fix trivial typo

Fix trivial typo in the equation to check upper bound of current setting.
Signed-off-by: NAxel Lin <axel.lin@ingics.com>
Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册