From: Fabio Estevam Date: Mon, 16 May 2011 13:54:27 +0000 (-0300) Subject: regulator: mc13892: Fix voltage unit in test case. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6dc4efc6d5429292f29009f6569fbb9a53929dd6;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git regulator: mc13892: Fix voltage unit in test case. Voltage values should be expressed in microvolts, not in milivolts. Signed-off-by: Fabio Estevam Signed-off-by: Ranjani Vaidyanathan Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- diff --git a/drivers/regulator/mc13892-regulator.c b/drivers/regulator/mc13892-regulator.c index 33d43b26d53b..3285d41842f2 100644 --- a/drivers/regulator/mc13892-regulator.c +++ b/drivers/regulator/mc13892-regulator.c @@ -452,9 +452,9 @@ static int mc13892_sw_regulator_set_voltage(struct regulator_dev *rdev, if (ret) goto err; - if (value > 1375) + if (value > 1375000) hi = 1; - else if (value < 1100) + else if (value < 1100000) hi = 0; else hi = valread & MC13892_SWITCHERS0_SWxHI;