diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-03-08 03:02:17 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-03-11 21:38:10 +0100 |
commit | f03570cf1709397ebe656608266b44ec772960c2 (patch) | |
tree | a88f2ba51f3f648dcaf0c816a1e430efe636a0c4 /drivers/regulator/tps6524x-regulator.c | |
parent | Linux 3.3-rc7 (diff) | |
download | linux-f03570cf1709397ebe656608266b44ec772960c2.tar.xz linux-f03570cf1709397ebe656608266b44ec772960c2.zip |
regulator: Fix setting selector in tps6524x set_voltage function
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>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/regulator/tps6524x-regulator.c')
-rw-r--r-- | drivers/regulator/tps6524x-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/tps6524x-regulator.c b/drivers/regulator/tps6524x-regulator.c index 70b7b1f4f000..2e94686b6fe6 100644 --- 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; - *selector = info->voltages[i]; + *selector = i; return write_field(hw, &info->voltage, i); } |