diff options
-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 674ece7c832b..d45a4dd17131 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, | |||
97 | while (chg_min_uA + CHGIN_ILIM_STEP_20mA * sel < min_uA) | 97 | while (chg_min_uA + CHGIN_ILIM_STEP_20mA * sel < min_uA) |
98 | sel++; | 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 | return -EINVAL; | 101 | return -EINVAL; |
102 | 102 | ||
103 | /* the first four codes for charger current are all 60mA */ | 103 | /* the first four codes for charger current are all 60mA */ |