diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2011-05-05 15:59:39 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:43:12 -0800 |
commit | dc75852c42b97b4d706ccaacbbdd8b16b6688e0d (patch) | |
tree | b2b554f74ce3b940da3c5acb1bcd0b00e19a83ed /drivers/regulator | |
parent | 6dadd4f8d1b961345a0f6dba1d03c715a6e19cc0 (diff) |
regulator: gpio_switch: voltage should be return in microvolts
The get_voltage should return voltage in unit of microvolts.
bug 823828
Original-Change-Id: I41d168f2845947cab0b076b0d3f0b70305af240b
Reviewed-on: http://git-master/r/30488
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Tested-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Rebase-Id: Re26c5a127adacaa692682f56c15a3e26e5277b29
Diffstat (limited to 'drivers/regulator')
-rw-r--r--[-rwxr-xr-x] | drivers/regulator/gpio-switch-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/gpio-switch-regulator.c b/drivers/regulator/gpio-switch-regulator.c index 9abd3ab33beb..02a9bf19ffe6 100755..100644 --- a/drivers/regulator/gpio-switch-regulator.c +++ b/drivers/regulator/gpio-switch-regulator.c @@ -134,7 +134,7 @@ static int gpio_switch_get_voltage(struct regulator_dev *rdev) return regulator_get_voltage(ri->input_regulator); if (ri->curr_vol_sel < ri->reg_desc.n_voltages) - return ri->voltages[ri->curr_vol_sel]; + return ri->voltages[ri->curr_vol_sel] * 1000; return 0; } |