projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b57c01
)
regulator: tps6524x: Fix get_voltage_sel for fixed voltage
author
Axel Lin
<axel.lin@gmail.com>
Thu, 14 Jun 2012 08:00:53 +0000
(16:00 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Wed, 20 Jun 2012 10:20:24 +0000
(11:20 +0100)
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>
drivers/regulator/tps6524x-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/tps6524x-regulator.c
b/drivers/regulator/tps6524x-regulator.c
index
b88b3df
..
1b299aa
100644
(file)
--- 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)