regulator: Fix getting voltage in max8649_enable_time()
Current code takes wrong parameter while calling max8649_list_voltage. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
5326916354
commit
9fc886a188
|
@ -150,7 +150,7 @@ static int max8649_enable_time(struct regulator_dev *rdev)
|
|||
if (ret != 0)
|
||||
return ret;
|
||||
val &= MAX8649_VOL_MASK;
|
||||
voltage = max8649_list_voltage(rdev, (unsigned char)ret); /* uV */
|
||||
voltage = max8649_list_voltage(rdev, (unsigned char)val); /* uV */
|
||||
|
||||
/* get rate */
|
||||
ret = regmap_read(info->regmap, MAX8649_RAMP, &val);
|
||||
|
|
Loading…
Reference in New Issue