Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6dc4efc6 authored by Fabio Estevam's avatar Fabio Estevam Committed by Liam Girdwood
Browse files

regulator: mc13892: Fix voltage unit in test case.



Voltage values should be expressed in microvolts, not in milivolts.

Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarRanjani Vaidyanathan <ra5478@freescale.com>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent ecb9c4f5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;