diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-06-29 11:37:29 +0800 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-01 11:15:38 +0100 |
commit | f3ecdd7bf6a782a6eafe9c2c5d39fcb487e2a154 (patch) | |
tree | b9edb61c9e3b68cee0eaae41ad12b94c1c0792bf /drivers/regulator | |
parent | 80b022e29bfdffb6c9ac0a283bcad3e1030c4c7e (diff) | |
download | op-kernel-dev-f3ecdd7bf6a782a6eafe9c2c5d39fcb487e2a154.zip op-kernel-dev-f3ecdd7bf6a782a6eafe9c2c5d39fcb487e2a154.tar.gz |
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>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/max77693.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/max77693.c b/drivers/regulator/max77693.c index 674ece7..d45a4dd 100644 --- a/drivers/regulator/max77693.c +++ b/drivers/regulator/max77693.c @@ -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 */ |