* [PATCH] regulator: tps6524x: Fix get_voltage_sel for fixed voltage
@ 2012-06-14 8:00 Axel Lin
0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2012-06-14 8:00 UTC (permalink / raw)
To: linux-kernel; +Cc: Cyril Chemparathy, Liam Girdwood, Mark Brown
get_voltage_sel() should return selector rather than voltage.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/regulator/tps6524x-regulator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/tps6524x-regulator.c b/drivers/regulator/tps6524x-regulator.c
index b88b3df..1b299aa 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)
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-06-14 8:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-14 8:00 [PATCH] regulator: tps6524x: Fix get_voltage_sel for fixed voltage Axel Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox