git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7b6d02d
)
regulator: Fix setting selector in tps6524x set_voltage function
author
Axel Lin
<axel.lin@gmail.com>
Thu, 8 Mar 2012 02:02:17 +0000
(10:02 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 19 Mar 2012 16:02:34 +0000
(09:02 -0700)
commit
f03570cf1709397ebe656608266b44ec772960c2
upstream.
Don't assign the voltage to selector.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/regulator/tps6524x-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/tps6524x-regulator.c
b/drivers/regulator/tps6524x-regulator.c
index
9166aa0
..
229b6f4
100644
(file)
--- a/
drivers/regulator/tps6524x-regulator.c
+++ b/
drivers/regulator/tps6524x-regulator.c
@@
-481,7
+481,7
@@
static int set_voltage(struct regulator_dev *rdev, int min_uV, int max_uV,
if (i >= info->n_voltages)
i = info->n_voltages - 1;
if (i >= info->n_voltages)
i = info->n_voltages - 1;
- *selector = i
nfo->voltages[i]
;
+ *selector = i;
return write_field(hw, &info->voltage, i);
}
return write_field(hw, &info->voltage, i);
}