From: Axel Lin Date: Tue, 7 Feb 2012 03:12:55 +0000 (+0800) Subject: regulator: Fix getting voltage in max8649_enable_time() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9fc886a1880766fb91cb27c2e96bd814cef640d6;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git regulator: Fix getting voltage in max8649_enable_time() Current code takes wrong parameter while calling max8649_list_voltage. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/max8649.c b/drivers/regulator/max8649.c index b06a2399587c..d0e1180ad961 100644 --- a/drivers/regulator/max8649.c +++ b/drivers/regulator/max8649.c @@ -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);