Skip to content

Commit

Permalink
regulator: Fix getting voltage in max8649_enable_time()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Mark Brown committed Feb 10, 2012
1 parent 5326916 commit 9fc886a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/max8649.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9fc886a

Please sign in to comment.