]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
regulator: Fix getting voltage in max8649_enable_time()
authorAxel Lin <axel.lin@gmail.com>
Tue, 7 Feb 2012 03:12:55 +0000 (11:12 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 10 Feb 2012 11:20:55 +0000 (11:20 +0000)
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>
drivers/regulator/max8649.c

index b06a2399587c0e08fec38c8c827da6859130840f..d0e1180ad961c115fa55ddc4e318b2fbf5e42b31 100644 (file)
@@ -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);