summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/tps6524x-regulator.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-06-14 10:00:53 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-06-20 12:20:24 +0200
commit8386a00f1443f676e8b614f654e2e324fdc0b3b3 (patch)
tree5b94fa5a9b2dba0fe1331f68d21bf5286864441a /drivers/regulator/tps6524x-regulator.c
parentregulator: tps65023: Fix mask for LDOs output voltage select control (diff)
downloadlinux-8386a00f1443f676e8b614f654e2e324fdc0b3b3.tar.xz
linux-8386a00f1443f676e8b614f654e2e324fdc0b3b3.zip
regulator: tps6524x: Fix get_voltage_sel for fixed voltage
get_voltage_sel() should return selector rather than voltage. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/tps6524x-regulator.c')
-rw-r--r--drivers/regulator/tps6524x-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/tps6524x-regulator.c b/drivers/regulator/tps6524x-regulator.c
index b88b3df82381..1b299aacf22f 100644
--- a/drivers/regulator/tps6524x-regulator.c
+++ b/drivers/regulator/tps6524x-regulator.c
@@ -482,7 +482,7 @@ static int get_voltage_sel(struct regulator_dev *rdev)
info = &supply_info[rdev_get_id(rdev)];
if (info->flags & FIXED_VOLTAGE)
- return info->fixed_voltage;
+ return 0;
ret = read_field(hw, &info->voltage);
if (ret < 0)